<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/xtradius/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/xtradius/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/xtradius/bugs/</id><updated>2002-08-06T14:33:50Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>log entries format(s)</title><link href="https://sourceforge.net/p/xtradius/bugs/2/" rel="alternate"/><published>2002-08-06T14:33:50Z</published><updated>2002-08-06T14:33:50Z</updated><author><name>Dave Private</name><uri>https://sourceforge.net/u/stau/</uri></author><id>https://sourceforge.net26c4d31c3c140b35a5b38720d981237e96dbd253</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Priority: Low&lt;br /&gt;
Impact: Cosmetics&lt;/p&gt;
&lt;p&gt;The following log() calls seems to be strange due to &lt;br /&gt;
message formmating or parameters passing, ...&lt;/p&gt;
&lt;p&gt;FILE:LINE: source code&lt;br /&gt;
- missing space between %s and text may caused the &lt;br /&gt;
log record hard to read&lt;br /&gt;
radiusd.c:847:                  log(L_ERR, &amp;amp;quot;%saccounting &lt;br /&gt;
process died - exit.&amp;amp;quot;, me);&lt;br /&gt;
radiusd.c:850:                  log(L_ERR, &amp;amp;quot;%sfailed in &lt;br /&gt;
select() - exit.&amp;amp;quot;, me);&lt;br /&gt;
radiusd.c:853:                  log(L_INFO, &amp;amp;quot;%sexit.&amp;amp;quot;, me);&lt;br /&gt;
radiusd.c:856:                  log(L_ERR, &amp;amp;quot;%sexit on signal &lt;br /&gt;
(%d)&amp;amp;quot;, me, sig);&lt;/p&gt;
&lt;p&gt;- some of formats is missing&lt;br /&gt;
auth.c:850: log(L_AUTH,&lt;br /&gt;
    &amp;amp;quot;Login incorrect: [%s] (%s) &amp;amp;quot;&lt;br /&gt;
    &amp;amp;quot;(external check failed)&amp;amp;quot;,&lt;br /&gt;
    namepair-&amp;amp;gt;strvalue,&lt;br /&gt;
    auth_name(authreq, 1));&lt;/p&gt;
&lt;p&gt;- unification of messages with same cause&lt;br /&gt;
There are few groups of messages which has various &lt;br /&gt;
message texts (only three examples are given)&lt;br /&gt;
1. Out of memory (no memory, Out of memory!,...)&lt;br /&gt;
2. Can't fork (Accounting: fork: %s, Fork failed ...)&lt;br /&gt;
3. Can't open file (cannot open ..., Couldn't open %s &lt;br /&gt;
for ...)&lt;br /&gt;
The unified message may contain name of the &lt;br /&gt;
subsystem which was affected.&lt;/p&gt;
&lt;p&gt;Regards David&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Buffer overflow</title><link href="https://sourceforge.net/p/xtradius/bugs/1/" rel="alternate"/><published>2002-08-06T13:47:22Z</published><updated>2002-08-06T13:47:22Z</updated><author><name>Dave Private</name><uri>https://sourceforge.net/u/stau/</uri></author><id>https://sourceforge.net8495c1fed8a3c8f5f28035c41af54239104c8eb5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br /&gt;
I've found bug mentioned above in file: cache.c&lt;/p&gt;
&lt;p&gt;The following fragment of code is located in affected file &lt;br /&gt;
on two places.&lt;/p&gt;
&lt;p&gt;if((len+1) &amp;amp;gt; MAXUSERNAME) {&lt;br /&gt;
log(L_ERR, &amp;amp;quot;HASH:  Username too long in line:  %s&amp;amp;quot;, &lt;br /&gt;
buffer);&lt;br /&gt;
}&lt;br /&gt;
strncpy(username, buffer, len); /* BUFFER OVERFLOW &lt;br /&gt;
HERE */&lt;br /&gt;
username[len] = '\0';&lt;/p&gt;
&lt;p&gt;The proposed change is placing&lt;br /&gt;
len = MAXUSERNAME - 1;&lt;br /&gt;
to the enbraced block such as:&lt;br /&gt;
if((len+1) &amp;amp;gt; MAXUSERNAME) {&lt;br /&gt;
log(L_ERR, &amp;amp;quot;HASH:  Username too long in line:  %s&amp;amp;quot;, &lt;br /&gt;
buffer);&lt;br /&gt;
len = MAXUSERNAME - 1;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;The less important issue is that the both messages &lt;br /&gt;
aren't same but similar (they have different number of &lt;br /&gt;
spaces). This inconsistency may caused problems &lt;br /&gt;
during parsing of log file.&lt;/p&gt;
&lt;p&gt;Regards David.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>