]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fuzzing: Expose `DONT_FAIL_ON_CRC_ERROR` as a CMake option and honor it in the rar5...
authorMrmaxmeier <3913977+Mrmaxmeier@users.noreply.github.com>
Wed, 12 Jun 2024 18:57:20 +0000 (20:57 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2024 18:57:20 +0000 (11:57 -0700)
commitbea3a56118b4b4e5ac652f94685b80d3d1b82611
treea176f326e3294f4bf047cf93cc261763cf1d0c1d
parentffa43aef31874b878e897dcb56f2791302e96dcb
Fuzzing: Expose `DONT_FAIL_ON_CRC_ERROR` as a CMake option and honor it in the rar5 decoder (#2229)

Hey,

the fuzzing infrastructure over at OSSFuzz builds libarchive with the
CMake option `-DDONT_FAIL_ON_CRC_ERROR=1`.

https://github.com/google/oss-fuzz/blob/e4643b64b3af4932bff23bb87afdfbac2a301969/projects/libarchive/build.sh#L35
This, unfortunatly, does not do anything since it's never been defined
as an option.

Building the fuzzers with CRC checks disabled should improve fuzzing
efficacy a bunch.

Thanks!
CMakeLists.txt
libarchive/archive_read_support_format_rar5.c