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

Reply via email to