On Mon, Mar 25, 2024 at 04:09:00PM +0800, Zhao Zhili wrote:
> From: Zhao Zhili <[email protected]>
> 
> Fixes: out of array write
> Fixes: 
> 64407/clusterfuzz-testcase-minimized-ffmpeg_BSF_H264_MP4TOANNEXB_fuzzer-4966763443650560
> 
> mp4toannexb_filter counts the number of bytes needed in the first
> pass and allocate the memory, then do memcpy in the second pass.
> Update sps/pps size in the loop makes the count invalid in the
> case of SPS/PPS occur after IDR slice. This patch process in-band
> SPS/PPS before the two pass loops.
> ---
>  libavcodec/bsf/h264_mp4toannexb.c | 59 ++++++++++++++++++++++++-------
>  1 file changed, 46 insertions(+), 13 deletions(-)

I confirm this fixes the testcase

this or some other fix is needed for 7.0

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Everything should be made as simple as possible, but not simpler.
-- Albert Einstein

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to