]> git.ipfire.org Git - thirdparty/zstd.git/commit
[huf] Fix null pointer addition
authorNick Terrell <terrelln@meta.com>
Mon, 20 Nov 2023 20:04:30 +0000 (12:04 -0800)
committerNick Terrell <nickrterrell@gmail.com>
Mon, 20 Nov 2023 22:13:01 +0000 (17:13 -0500)
commitdd4de1dd7a78ccff933025cf1de08a75d310802b
treecf4dd8122da1c47d909c98a35d9681f7d0351a6e
parent5ab78c0418dd2b77e76e8350a563b9771a424b27
[huf] Fix null pointer addition

`HUF_DecompressFastArgs_init()` was adding 0 to NULL. Fix it by exiting
early for empty outputs. This is no change in behavior, because the
function was already exiting 0 in this case, just slightly later.
lib/decompress/huf_decompress.c