From 0b6d0f41c20b4828782bd253cfdf892183531619 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 30 Dec 2014 20:31:49 -0600 Subject: [PATCH] gzip_decompress(): ignore XFL --- src/gzip_constants.h | 1 - src/gzip_decompress.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gzip_constants.h b/src/gzip_constants.h index edd092a..0041857 100644 --- a/src/gzip_constants.h +++ b/src/gzip_constants.h @@ -28,7 +28,6 @@ #define GZIP_XFL_SLOWEST_COMRESSION 0x02 #define GZIP_XFL_FASTEST_COMRESSION 0x04 -#define GZIP_XFL_RESERVED 0xF9 #define GZIP_OS_FAT 0 #define GZIP_OS_AMIGA 1 diff --git a/src/gzip_decompress.c b/src/gzip_decompress.c index 55fd6ed..6b03f70 100644 --- a/src/gzip_decompress.c +++ b/src/gzip_decompress.c @@ -34,8 +34,7 @@ gzip_decompress(struct deflate_decompressor *d, /* MTIME */ in_next += 4; /* XFL */ - if (*in_next++ & GZIP_XFL_RESERVED) - return false; + in_next += 1; /* OS */ in_next += 1;