This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 112b0bbab237b937921b8e4356699095743f63df Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Oct 6 23:23:11 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Tue Oct 13 02:29:51 2026 +0000 avformat/gxfenc: Do not read past the end of MPEG-2 packets shorter than 2 bytes Checking the index before the read was suggested in the report. Fixes: NULL pointer dereference Fixes: mOGFdmxuya4M Fixes: AISLE-2026-0111-00065 NULL pointer dereference Replicated through API with ASAN Found-by: Joshua Rogers <[email protected]> --- libavformat/gxfenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c index 023c20d4e5..9bba49ab74 100644 --- a/libavformat/gxfenc.c +++ b/libavformat/gxfenc.c @@ -878,7 +878,7 @@ static int gxf_parse_mpeg_frame(GXFStreamContext *sc, const uint8_t *buf, int si if(c == 0x1B8 && sc->first_gop_closed == -1) /* GOP start code */ sc->first_gop_closed= (buf[i+4]>>6)&1; } - return (buf[i+1]>>3)&7; + return i + 1 < size ? (buf[i+1]>>3)&7 : 0; } static int gxf_write_media_preamble(AVFormatContext *s, AVPacket *pkt, int size) -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
