<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/xtradius/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/xtradius/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 06 Aug 2002 14:33:50 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/xtradius/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>log entries format(s)</title><link>https://sourceforge.net/p/xtradius/bugs/2/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Private</dc:creator><pubDate>Tue, 06 Aug 2002 14:33:50 -0000</pubDate><guid>https://sourceforge.net26c4d31c3c140b35a5b38720d981237e96dbd253</guid></item><item><title>Buffer overflow</title><link>https://sourceforge.net/p/xtradius/bugs/1/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Private</dc:creator><pubDate>Tue, 06 Aug 2002 13:47:22 -0000</pubDate><guid>https://sourceforge.net8495c1fed8a3c8f5f28035c41af54239104c8eb5</guid></item></channel></rss>