commit | 5e227133c16c1c9ff41a18a2b411a20afe81be6c | [log] [tgz] |
---|---|---|
author | Ben Wagner <bungeman@chromium.org> | Sat Jan 15 17:08:18 2022 -0500 |
committer | Ben Wagner <bungeman@chromium.org> | Sat Jan 15 17:21:39 2022 -0500 |
tree | 257946c41bd71e800be665f850d61a021066d6b2 | |
parent | edd4fedc5427cf1cf1f4b045e53ff91eb282e9d4 [diff] |
[pshinter] Avoid accessing uninitialized zone. The `normal_top.count` may be 0, implying no `normal_top.zones` exist. The code must not access these (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