Bug? HTTChunk.c - illegal chunk size
Richard Hirner <[email protected]> Fri, 16 Jul 2004 12:56:13 +0200
| Newsgroups | gmane.comp.lib.libwww |
|---|---|
| Message-ID | <[email protected]> |
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