]> git.ipfire.org Git - thirdparty/xz.git/commit
Tests: Call lzma_code() in smaller chunks in fuzz_common.h
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 3 Apr 2025 11:34:43 +0000 (14:34 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 3 Apr 2025 11:34:43 +0000 (14:34 +0300)
commit513cabcf7f5ce1c3ed0619e791393fc53d1dbbd0
tree9f5c0689ec8964ac8bf36d22237b4b34bda8182a
parent48440e24a25911ae59e8518b67a1e0f6f1c293bf
Tests: Call lzma_code() in smaller chunks in fuzz_common.h

This makes it easy to crash fuzz_decode_stream_mt when tested
against the code from 5.8.0.

Obviously this might make it harder to reach some other code path now.
The previous code has been in use since 2018 when fuzzing was added
in 106d1a663d4b ("Tests: Add a fuzz test program and a config file
for OSS-Fuzz.").
tests/ossfuzz/fuzz_common.h