W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2004

Bug? HTTChunk.c - illegal chunk size

From: Richard Hirner <richard@hirner.at>
Date: Fri, 16 Jul 2004 12:56:13 +0200
Message-ID: <40F7B44D.2020404@hirner.at>
To: www-lib@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:44 GMT