mirror of https://github.com/google/oss-fuzz.git
Improve coverage of tar files in libarchive (#8744)
Co-authored-by: Julien Voisin <jvoisin@google.com>
This commit is contained in:
parent
d23c6e11ce
commit
16bf2e52de
|
@ -43,7 +43,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) {
|
|||
archive_read_support_format_empty(a);
|
||||
archive_read_support_format_raw(a);
|
||||
|
||||
archive_read_set_options(a, "zip:ignorecrc32");
|
||||
if (ARCHIVE_OK != archive_read_set_options(a, "zip:ignorecrc32,tar:read_concatenated_archives,tar:mac-ext")) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Buffer buffer = {buf, len};
|
||||
archive_read_open(a, &buffer, NULL, reader_callback, NULL);
|
||||
|
|
Loading…
Reference in New Issue