[subset] fuzzer fix: https://oss-fuzz.com/testcase?key=6254792024915968
Make sure input is valid, each gid has a corresponding offset value in the map
This commit is contained in:
parent
364b6b3989
commit
0a7563a53f
|
@ -971,7 +971,10 @@ struct ClipList
|
||||||
const hb_map_t& gid_offset_map) const
|
const hb_map_t& gid_offset_map) const
|
||||||
{
|
{
|
||||||
TRACE_SERIALIZE (this);
|
TRACE_SERIALIZE (this);
|
||||||
if (gids.is_empty ()) return_trace (0);
|
if (gids.is_empty () ||
|
||||||
|
gid_offset_map.get_population () != gids.get_population ())
|
||||||
|
return_trace (0);
|
||||||
|
|
||||||
unsigned count = 0;
|
unsigned count = 0;
|
||||||
|
|
||||||
hb_codepoint_t start_gid= gids.get_min ();
|
hb_codepoint_t start_gid= gids.get_min ();
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue