]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix static analysis false-positives 3020/head
authorNick Terrell <terrelln@fb.com>
Sun, 30 Jan 2022 20:16:16 +0000 (12:16 -0800)
committerNick Terrell <terrelln@fb.com>
Sun, 30 Jan 2022 20:16:16 +0000 (12:16 -0800)
commit8d65f87416740444da4a713d2778b78c11c6b38b
tree31b19e48262d5e5afd3eec81601659ef2e822ec4
parent1fc42de86a53320c056c9a3ca9847eae7ce1262b
Fix static analysis false-positives

* It couldn't detect that the `fastCoverParams` can't be non-null, since it was just an assertion.
* It thought we were accesing `wksp->dtable` beyond the bounds because we were using it to set the `workSpace` value. Instead, compute the workspace size used in a different way.
lib/common/fse.h
lib/common/fse_decompress.c
programs/dibio.c