]> git.ipfire.org Git - thirdparty/zstd.git/commit
[oss-fuzz] Fix simple_round_trip fuzzer with overlapping decompression
authorNick Terrell <terrelln@fb.com>
Wed, 12 Apr 2023 23:00:28 +0000 (16:00 -0700)
committerNick Terrell <nickrterrell@gmail.com>
Thu, 13 Apr 2023 17:14:29 +0000 (10:14 -0700)
commite72e13ac6c1dc373a0826df0de6f9bf13ee02ee4
tree8216c8039b6a8ecb6244cb21bd1193ed38b03276
parent0f255ff4faaa6ba414272bf7f239ddb4891cdda2
[oss-fuzz] Fix simple_round_trip fuzzer with overlapping decompression

When `ZSTD_c_maxBlockSize` is set, we weren't computing the
decompression margin correctly, leading to `dstSize_tooSmall` errors.
Fix that computation.

This is just a bug in the fuzzer, not a bug in the library itself.

Credit to OSS-Fuzz
tests/fuzz/simple_round_trip.c