]> git.sesse.net Git - ffmpeg/commit
avcodec/h264_metadata_bsf: Check nb_units before accessing the first in h264_metadata...
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 31 Jan 2021 21:36:52 +0000 (22:36 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 Mar 2021 20:02:31 +0000 (21:02 +0100)
commit0c48c332eeb2866d9353125f701e099c48889463
treed7d5c4773c99fb602be8060f0c9deb70ee5aa639
parent4e7dbca74c1395082947bb1586c1da47f50b1d18
avcodec/h264_metadata_bsf: Check nb_units before accessing the first in h264_metadata_update_fragment()

Fixes: null pointer dereference
Fixes: 29835/clusterfuzz-testcase-minimized-ffmpeg_BSF_H264_METADATA_fuzzer-4712125383704576
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_metadata_bsf.c