]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix bugs in simple decompression fuzzer (#3978)
authorYonatan Komornik <11005061+yoniko@users.noreply.github.com>
Mon, 18 Mar 2024 22:36:40 +0000 (15:36 -0700)
committerGitHub <noreply@github.com>
Mon, 18 Mar 2024 22:36:40 +0000 (15:36 -0700)
commit6a0052a409e2604bd40354b76b86272b712edd7d
tree578729221624471ca9fecc441f99b3bcb2a56257
parentcd4dba74dea8a92f9e33d72fcb5b60224bc4e6c3
Fix bugs in simple decompression fuzzer (#3978)

Fixes 2 issue in `simple_decompress.c`:
1. Wrong type used for storing the results of `ZSTD_findDecompressedSize` resulting in never matching to `ZSTD_CONTENTSIZE_ERROR` or `ZSTD_CONTENTSIZE_UNKNOWN`.

2. Experimental API is used (`ZSTD_findDecompressedSize`) without defining `ZSTD_STATIC_LINKING_ONLY`.
tests/fuzz/simple_decompress.c