vp8_decode: only remove threads on thread create failure
authorJames Zern <jzern@google.com>
Tue, 27 Jun 2023 02:22:00 +0000 (19:22 -0700)
committerJames Zern <jzern@google.com>
Tue, 27 Jun 2023 02:23:58 +0000 (19:23 -0700)
commita166c52d3a2e72d0fe4dbc8909523c6ad8fbdfb2
tree198affe1f9109f1bf49a4ac09642773a542ed30b
parent263ddc9e384fc747714210df1866b1200227dee1
vp8_decode: only remove threads on thread create failure

This fixes a crash if the application continues to call
vpx_codec_decode(). Previously the decoder instance would be freed,
causing a crash when attempting to access it with restart_threads=1.

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

Bug: webm:1807
Change-Id: Ic084894b776729bb1572f747082cef002f0832a8
vp8/vp8_dx_iface.c