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>

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.


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

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