oss-fuzz icon indicating copy to clipboard operation
oss-fuzz copied to clipboard

libarchive: fix harness and improve build setup

Open Mrmaxmeier opened this issue 8 months ago • 3 comments

This fixes a major harness issue in the libarchive fuzzer and resolves a fuzzing roadblock issue related to the build setup. All calls after archive_read_add_passphrase currently exit early because the decoder state is marked as invalid due to incorrect API usage.

When combined with https://github.com/libarchive/libarchive/pull/2229, this should improve coverage from ~15% to >45%. While the harness issue regressed at some point, it seems like the CRC build flag issue was always present in oss-fuzz's libarchive setup.

Thanks!

Mrmaxmeier avatar Jun 12 '24 12:06 Mrmaxmeier