Skip to content

[pshinter] Avoid accessing uninitialized zone.

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. Test normal_top.count before using normal_top.zones[0]. Do not rescale if there are no zones.

Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43675

Merge request reports