W3C home > Mailing lists > Public > www-archive@w3.org > March 2011

zlib 1.2.5 puff.c fixed() fails to initialize tables

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 15 Mar 2011 01:41:11 +0100
To: zlib@gzip.org
Message-ID: <c5dtn69j7spdvfi93d3dukn577h5tjovja@hive.bjoern.hoehrmann.de>
Hi,

  In zlib 1.2.5.'s `puff.c` the `fixed()` routine initializes the fields
in `lencode` and `distcode` after calling `construct()` which relies on
them being initialized. The initialization needs to be moved before the
first call to `construct()`.

regards,
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Tuesday, 15 March 2011 00:41:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:18:35 GMT