[prev in list] [next in list] [prev in thread] [next in thread] 

List:       info-cyrus
Subject:    fetchnews segmentation fault
From:       Rupa Schomaker <cyrus () lists ! rupa ! com>
Date:       2005-08-25 14:38:26
Message-ID: 430DD7E2.4000003 () lists ! rupa ! com
[Download RAW message or body]

My news provider has a few problems with STAT / NEXT,NEXT,NEXT.

In particular, sometimes it responds with a garbage msgid instead of a
properly formatted msgid.

eg:

stat 781
223 781 Thu, 25 Aug 2005 15:07:56 -0700

uggh, looks like corruption on their end.

In any case, fetchnews will seg fault when this happens.

The problem is the code:

            *(strrchr(resp[i], '>') + 1) = '\0';

It does no check to see if strrchr returned NULL before replacing NULL+1
with '\0'.  Not good.

-- 
 -Rupa


----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic