fetchnews segmentation fault
    Rupa Schomaker 
    cyrus at lists.rupa.com
       
    Thu Aug 25 10:38:26 EDT 2005
    
    
  
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
    
    
More information about the Info-cyrus
mailing list