avcodec/utils: Check block_align
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 31 Oct 2019 08:31:22 +0000 (09:31 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 1 Nov 2019 13:43:16 +0000 (14:43 +0100)
commitf011572e66c8dd2f0ac3cb147a769e91f24e0202
tree34e413dd38890f6fc786e4e4d4da304b06f0892e
parent99fc5059fbee8a0fd2957f958b34fdec1e9ca361
avcodec/utils: Check block_align

Fixes: out of array access
Fixes: 18432/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMAV2_fuzzer-5675574936207360
Fixes: 18326/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMAV2_fuzzer-5071752362721280
Fixes: 18384/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMAV1_fuzzer-5769439500304384

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c