diff --git a/projects/libarchive/libarchive_fuzzer.cc b/projects/libarchive/libarchive_fuzzer.cc index 3ab700cf6..392daf50a 100644 --- a/projects/libarchive/libarchive_fuzzer.cc +++ b/projects/libarchive/libarchive_fuzzer.cc @@ -47,8 +47,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) { struct archive_entry *entry; while (archive_read_next_header(a, &entry) == ARCHIVE_OK) { while ((r = archive_read_data(a, data_buffer.data(), - data_buffer.size()) > 0) - ); + data_buffer.size())) > 0) + ; if (r == ARCHIVE_FATAL) break; }