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>
Fri, 29 Sep 2023 20:13:47 +0000 (13:13 -0700)
commita53700e4a3820ad929e2b8c79d10e46abef62575
treef01bcf14191941d05a5fa38d22b6370bb6dd9289
parentbaed1218776fba096c05c1c683564ba4523d17e5
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
(cherry picked from commit 02ab555e992c191e5c509ed87b3cc48ed915b447)
vp9/common/vp9_alloccommon.c