avcodec/mp3_header_decompress_bsf: Check sample_rate_index
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 13 Dec 2019 23:37:27 +0000 (00:37 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 15 Dec 2019 00:00:34 +0000 (01:00 +0100)
commitf064c7c449f162a9011ad890f26ceeca26934d22
tree756f4bfedec87feb5e3b6aec66e64bb2a606452b
parent1f8e43938bc2cc43ab1a875456aea373e0b587b9
avcodec/mp3_header_decompress_bsf: Check sample_rate_index

Fixes: out of array read
Fixes: 19309/clusterfuzz-testcase-minimized-ffmpeg_BSF_MP3_HEADER_DECOMPRESS_fuzzer-5651002950942720

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/mp3_header_decompress_bsf.c