[pshinter] Avoid accessing uninitialized zone.
requested to merge bungeman/freetype:dont_assume_at_least_one_normal_top_zone_is_present into master
It is possible that there are no normal_top.zones
, in which case
normal_top.count
will be 0. In such cases one must be careful not to
try to access any of the (non-existent) normal_top.zones
.
- src/pshinter/pshalgo.c (ps_hints_apply): Do not assume that
normal_top.zones[0]
is initialized. Testnormal_top.count
before usingnormal_top.zones[0]
. Do not rescale if there are nozones
.
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43675