From 8e4056c1e44424e17a0e0ed52201d3a419d9204b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Moln=C3=A1r?= Date: Fri, 11 Aug 2006 17:59:12 +0200 Subject: [PATCH] vmlinuz/386: fixed zlib uncompression problem on dos --- NEWS | 3 +++ src/p_vmlinz.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index daa16b4f..a5f7b813 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/src/p_vmlinz.cpp b/src/p_vmlinz.cpp index 8cc27df6..337e2690 100644 --- a/src/p_vmlinz.cpp +++ b/src/p_vmlinz.cpp @@ -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