1
0
mirror of https://github.com/upx/upx.git synced 2025-08-11 22:52:30 +08:00

vmlinuz/386: fixed zlib uncompression problem on dos

This commit is contained in:
László Molnár
2006-08-11 17:59:12 +02:00
parent 1554e2b135
commit 8e4056c1e4
2 changed files with 4 additions and 1 deletions

3
NEWS
View File

@ -2,6 +2,9 @@
User visible changes for UPX
==================================================================
Changes in 2.90 (xx Aug 2006):
* vmlinuz/386: fixed zlib uncompression problem on dos
Changes in 2.01 (06 Jun 2006):
* arm/pe: better DLL support
* dos/exe: device driver support added

View File

@ -165,7 +165,7 @@ int PackVmlinuzI386::decompressKernel()
fd = dup(fi->getFd());
if (fd < 0)
break;
gzFile zf = gzdopen(fd, "r");
gzFile zf = gzdopen(fd, "rb");
if (zf == NULL)
break;
// estimate gzip-decompressed kernel size & alloc buffer