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


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 _ 
if (errstr == line)
    HTDEBUGBREAK("Chunk decoder received illigal chunk size: `%s\'\n" _ 

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:56 UTC