]> git.ipfire.org Git - thirdparty/zstd.git/commit
[zstd] Fix NULL pointer addition in ZSTD_checkContinuity() 2488/head
authorNick Terrell <terrelln@fb.com>
Fri, 5 Feb 2021 20:16:10 +0000 (12:16 -0800)
committerNick Terrell <terrelln@fb.com>
Fri, 5 Feb 2021 20:18:06 +0000 (12:18 -0800)
commitf9b1e711ba7d66130ebf29150512414155f0d823
tree4f83c7c32bf9a2bf0b89c0fd482cf67855adf3b1
parent824dff49175851e1e1a0a421ff156ad29b140f98
[zstd] Fix NULL pointer addition in ZSTD_checkContinuity()

Don't start a new section when `dstSize == 0` to avoid NULL
pointer addition.
lib/decompress/zstd_decompress.c
lib/decompress/zstd_decompress_block.c
lib/decompress/zstd_decompress_internal.h