avformat/mxfdec: check channel number in mxf_get_d10_aes3_packet()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 5 Sep 2021 19:24:15 +0000 (21:24 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Oct 2021 16:34:49 +0000 (18:34 +0200)
commit90d2f32f621b49637474453536b0fdc4903f8cb5
tree7abcaa1a6f0076f43321f6c50ce8c58fdfffc0fb
parent11388838ff8dd49d69039d1d667159280b10d652
avformat/mxfdec: check channel number in mxf_get_d10_aes3_packet()

Fixes: Out of array access
Fixes: 37030/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5387719147651072

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3dd5a8a13510d08a4e25e8f138d718672a0fed4a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mxfdec.c