avcodec/vp8_parser: Do not leave data/size uninitialized
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 6 Jul 2018 10:01:46 +0000 (12:01 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 Jul 2018 17:16:13 +0000 (19:16 +0200)
commit68fb93be04a40b9a90f7d118e459f9c09be3c913
tree76c99e98da49db6fab61879ad9f5b47b59e6d319
parent4d77a4a54d2f5c34a9cc7d3b3424d16e24515a0f
avcodec/vp8_parser: Do not leave data/size uninitialized

This is identical to what the VP9 parser does

Fixes: 9215/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LIBVPX_VP8_fuzzer-5768227253649408
Fixes: out of memory access

This may also fix oss fuzz issue 9212

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 284dde24dab30225ed3e233b0e5908d67d7e13e7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vp8_parser.c