Bug? HTTChunk.c - illegal chunk size

Hello,

I use libwww to crawl the Web and from time to time my crawler core 
dumps with this message:

HTTChunk.c:55 Chunk decoder received illigal chunk size: ` H'
Abort trap (core dumped)

Apparently, this is because there is a chunked transfer and the server 
delivers an invalid chunk length.

.... HTTChunk.c
char *errstr = NULL;
me->left = strtol(line, &errstr, 16);    /* hex! */
HTTRACE(STREAM_TRACE, "Chunked..... `%s\' chunk size: %X\n" _ line _ 
me->left);
if (errstr == line)
    HTDEBUGBREAK("Chunk decoder received illigal chunk size: `%s\'\n" _ 
line);
....

So I would need a patch that changes the behaviour from core dumping 
with HTDEBUBREAK to returning an error code. Can you help me, please?

Richard Hirner

Received on Friday, 16 July 2004 07:06:22 UTC