[Zlib-devel] Problem with inffast.S and inffas32.asm when NO_GZIP is #defined
Cosmin Truta
cosmin at cs.toronto.edu
Wed Oct 20 18:38:46 EDT 2004
Hi,
I noticed the ASM inflation code fails when NO_GZIP is #defined. The
problem exists both in zlib 1.2.1 and 1.2.2.
Below is the output of example.c, built using gcc on any Intel-based
platform, and, respectively, Microsoft C on the obvious platform.
The problem is only with inffast.S and its derivative. inffas86.c is
working fine -- both the version from contrib/inffas86/, and the newer
one, available at http://www.charm.net/~christop/zlib/, are okay.
Best regards,
Cosmin
**
$ make CFLAGS="-DASMINF -DNO_GZIP"
...
$ ./example
zlib version 1.2.2 = 0x1220, compile flags = 0x20255
uncompress(): hello, hello!
gzread(): hello, hello!
gzseek error, pos=-1, gztell=-1
**
F:\zlib>nmake -f win32\Makefile.msc LOC="-DASMINF -DNO_GZIP" OBJA=inffas32.obj test
...
F:\zlib>example
zlib version 1.2.2 = 0x1220, compile flags = 0x20255
uncompress(): hello, hello!
gzread(): hello, hello!
gzgets() after gzseek: hello!
inflate(): hello, hello!
>> Access Violation in inflate.c, line 1000, function inflate()
-- although that's just the location where the error was discovered
More information about the Zlib-devel
mailing list