[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] fetchnews segfaults

Raymond Scholz <rscholz@xxxxxx> writes:

> Program received signal SIGSEGV, Segmentation fault.
> 0x400a6193 in strchr () from /lib/libc.so.6
> (gdb) bt
> #0  0x400a6193 in strchr () from /lib/libc.so.6
> #1  0x8336a10 in ?? ()
> #2  0x804b5c6 in getgroup (g=0x40446cbc, first=3790) at ./fetchnews.c:998
> #3  0x804c361 in processupstream (server=0x805aa40 "news.arcor-ip.de", port=0, lastrun=980598700) at ./fetchnews.c:1362
> #4  0x804c797 in do_server (msgid=0x0, lastrun=980598700, newsgroup=0x0) at ./fetchnews.c:1502
> #5  0x804cf7c in main (argc=3, argv=0xbffffa34) at ./fetchnews.c:1736

The way doxover() parses the server response may lead to
dereferencing a NULL pointer if an XOVER line is truncated.
In that case, fetchnews will call strchr(NULL, '\t').

If you can find the offending XOVER command in your log file, please
try to retrieve that information manually and check if there is a
truncated line in the server response.


leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list