]> git.ipfire.org Git - thirdparty/zstd.git/commit
Unitialized memory read in ZSTD_decodeSeqHeaders()
authorNick Terrell <terrelln@fb.com>
Tue, 18 Oct 2016 23:08:52 +0000 (16:08 -0700)
committerNick Terrell <terrelln@fb.com>
Tue, 18 Oct 2016 23:41:33 +0000 (16:41 -0700)
commitbb68062c590dbd46905907dd2a63a658040a79d4
tree5f85fd7ff4fb3973c7e9a6077dd4af76c62c5fd6
parent7b06ad7a05eabf1e03a9eeff4d6fea7fe63eb0f1
Unitialized memory read in ZSTD_decodeSeqHeaders()

Caused by two things:
1. Not checking that `ip` is in range except for the first byte.
2. `ZSTDv0{5,6}_decodeLiteralsBlock()` could return a value larger than `srcSize`.
lib/decompress/zstd_decompress.c
lib/legacy/zstd_v01.c
lib/legacy/zstd_v05.c
lib/legacy/zstd_v06.c
lib/legacy/zstd_v07.c