fixes oss-fuzz 19978: Null-dereference READ (#2091)

This commit is contained in:
Michiharu Ariza 2020-01-09 20:24:16 -08:00 committed by Ebrahim Byagowi
parent 5e55a6d691
commit d2ab1ec65b
2 changed files with 1 additions and 0 deletions

View File

@ -185,6 +185,7 @@ struct index_map_subset_plan_t
unsigned int inner = v & 0xFFFF;
outer_map.add (outer);
if (inner > max_inners[outer]) max_inners[outer] = inner;
if (outer >= inner_sets.length) return;
inner_sets[outer]->add (inner);
}
}