From 3efb7af7e28061f8cd138eb2ed5261bf521abc63 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 20 May 2019 11:37:16 -0400 Subject: [PATCH] [STAT] Fix sanitize condition Oops! Fixes https://oss-fuzz.com/testcase-detail/5696825891225600 --- src/hb-ot-stat-table.hh | 2 +- ...ase-minimized-hb-subset-fuzzer-5696825891225600 | Bin 0 -> 69 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-subset-fuzzer-5696825891225600 diff --git a/src/hb-ot-stat-table.hh b/src/hb-ot-stat-table.hh index 8f9ff5ab2..f12b51ce3 100644 --- a/src/hb-ot-stat-table.hh +++ b/src/hb-ot-stat-table.hh @@ -186,7 +186,7 @@ struct AxisValue bool sanitize (hb_sanitize_context_t *c) const { TRACE_SANITIZE (this); - if (unlikely (c->check_struct (this))) + if (unlikely (!c->check_struct (this))) return_trace (false); switch (u.format) diff --git a/test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-subset-fuzzer-5696825891225600 b/test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-subset-fuzzer-5696825891225600 new file mode 100644 index 0000000000000000000000000000000000000000..30515a4c39f9b5297a2b42f9c7c62abba6a69f66 GIT binary patch literal 69 zcmZQzWME)mWM<}IV2ln9aSTcDn0+58BBi0uz{sEtWI=!^ln!-bVBm=PmGJ$$f3UuB L88c83!>4KhItdG- literal 0 HcmV?d00001