From c7608cc5fe18903214515d85ed4bcbf596fb6b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Matu=C5=A1ka?= Date: Sun, 22 Jan 2017 15:22:08 +0100 Subject: [PATCH] [libarchive] fix wrongly placed parentheses in 89ae65d (#307) --- projects/libarchive/libarchive_fuzzer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }