mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-08-04 02:06:31 -04:00
gzip_decompress(): ignore XFL
This commit is contained in:
parent
866888fbcb
commit
0b6d0f41c2
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user