From 85deddb16ee6b00b0c921998e1d93c84002f5a42 Mon Sep 17 00:00:00 2001 From: Qunxin Liu Date: Wed, 27 Oct 2021 14:36:02 -0700 Subject: [PATCH] [subset] fuzzer fix: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40406 --- src/hb-ot-color-colr-table.hh | 1 + ...-minimized-hb-subset-fuzzer-6315334756335616 | Bin 0 -> 20377 bytes 2 files changed, 1 insertion(+) create mode 100644 test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-subset-fuzzer-6315334756335616 diff --git a/src/hb-ot-color-colr-table.hh b/src/hb-ot-color-colr-table.hh index 5722acba4..9f34e56fb 100644 --- a/src/hb-ot-color-colr-table.hh +++ b/src/hb-ot-color-colr-table.hh @@ -971,6 +971,7 @@ struct ClipList const hb_map_t& gid_offset_map) const { TRACE_SERIALIZE (this); + if (gids.is_empty ()) return_trace (0); unsigned count = 0; hb_codepoint_t start_gid= gids.get_min (); diff --git a/test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-subset-fuzzer-6315334756335616 b/test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-subset-fuzzer-6315334756335616 new file mode 100644 index 0000000000000000000000000000000000000000..a7d8dda8e9a752fc604185a7c4d9b86b7fba833c GIT binary patch literal 20377 zcmeHP33L=i8vgspbQoe1Aj6SilHm|YBoGb>a!BM55io%Oas@JkF#$3pCLCE5cHk+8 zi^!o1VF3xUB8vj6i-4ktBI{#y*Y(&%4t0?yitKZJPf5sx^nQO=CnPcnryOxAeDhUT zRaaO4b^m`gBoUGPk-F{MxWj#t1`VZqlMz67Xx|WdT=_XRI&mjo$Apa_PTCDW%y7|b zj}z+EBN2EbGElX4i$;kT6L%Umz z*Q0bP9`TWxt6dZ2@H1TzKS-jcoz7(5?h4seoPulmW)-!}_e{&zw$nlSNqPZqKv^EQ zb<%CYTpWv3U&xkvtD}*A7ebv=T^_gmbzPLN{vo94k(-@2jT6(yF%kJKGbd#8RS2;_ zLjF;vmq?OVF)G4JQ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