diff options
author | John Högberg <[email protected]> | 2017-09-29 15:25:02 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2017-09-29 17:50:21 +0200 |
commit | 2257a0a2debf0a390e887e09c85bf14ba186f278 (patch) | |
tree | b3b3411eb262e910b0a9501a719f436e16daf1e7 /erts | |
parent | bf9f00f16b9825c5df235c2df4b325f97fed199a (diff) | |
download | otp-2257a0a2debf0a390e887e09c85bf14ba186f278.tar.gz otp-2257a0a2debf0a390e887e09c85bf14ba186f278.tar.bz2 otp-2257a0a2debf0a390e887e09c85bf14ba186f278.zip |
Fix gunzip/1 of concatenated gzip files
Quoting RFC 1952:
"A gzip file consists of a series of "members" (compressed data
sets). [...] The members simply appear one after another in the
file, with no additional information before, between, or after
them."
Diffstat (limited to 'erts')
-rw-r--r-- | erts/preloaded/src/zlib.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/preloaded/src/zlib.erl b/erts/preloaded/src/zlib.erl index 7bd9234a90..611010550f 100644 --- a/erts/preloaded/src/zlib.erl +++ b/erts/preloaded/src/zlib.erl @@ -541,7 +541,7 @@ gzip(Data) -> gunzip(Data) -> Z = open(), Bs = try - inflateInit(Z, 16+?MAX_WBITS), + inflateInit(Z, 16+?MAX_WBITS, reset), B = inflate(Z, Data), inflateEnd(Z), B |