vp9_alloccommon: clear allocation sizes on free
authorJames Zern <jzern@google.com>
Tue, 27 Jun 2023 02:06:51 +0000 (19:06 -0700)
committerJames Zern <jzern@google.com>
Tue, 27 Jun 2023 02:15:30 +0000 (19:15 -0700)
commit02ab555e992c191e5c509ed87b3cc48ed915b447
tree10bc6e61c49a0185116f8904b3ff485fa0d705cd
parent885ecc7c667eac3521d4558b2be554d96c95da41
vp9_alloccommon: clear allocation sizes on free

This fixes reallocations (and avoids potential crashes) if any
allocations fails and the application continues to call
vpx_codec_decode().

Found with vpx_dec_fuzzer_vp9 & Nallocfuzz
(https://github.com/catenacyber/nallocfuzz).

Bug: webm:1807
Change-Id: If5dc96b73c02efc94ec84c25eb50d10ad6b645a6
vp9/common/vp9_alloccommon.c