W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2000

Buffersize for HTUU_encode

From: Kallweit, Heiner <Heiner.Kallweit@commerzbank.com>
Date: Wed, 26 Apr 2000 14:06:50 +0200
Message-ID: <01EBDB2D6DFDD211A98200805FF50CF901188CBC@SV002871>
To: "'www-lib@w3.org'" <www-lib@w3.org>
Hello,

we ran into some problems (coredumps) when we used HTUU_encode from HTUU.c.
It turned out to be a problem with the size of the buffer we allocated.
The comments in HTUU.c recommend to allocate at least 1+(4*nbytes)/3 bytes.
This is not enough. You should allocate at least 1+4*(nbytes/3+1) bytes.
Now everything is ok.

HTH,

Heiner Kallweit
Andersen Consulting
Received on Wednesday, 26 April 2000 08:07:04 GMT

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