gzip_decompress(): ignore XFL

This commit is contained in:
Eric Biggers 2014-12-30 20:31:49 -06:00
parent 866888fbcb
commit 0b6d0f41c2
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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;