Improve coverage of tar files in libarchive (#8744)

Co-authored-by: Julien Voisin <jvoisin@google.com>
This commit is contained in:
Julien Voisin 2022-10-11 15:29:35 +02:00 committed by GitHub
parent d23c6e11ce
commit 16bf2e52de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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);