From: Nuo Mi <nuomi2021@gmail.com> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH 3/4] avcodec/cbs_h266_syntax_template: Check tile_y Date: Sat, 23 Mar 2024 23:04:49 +0800 Message-ID: <CAFXK13eCEyXLGyf=vQhiejiJ7fE3vn=zxGU3_T0WzQg=6smEvw@mail.gmail.com> (raw) In-Reply-To: <20240321011517.10363-3-michael@niedermayer.cc> On Thu, Mar 21, 2024 at 9:15 AM Michael Niedermayer <michael@niedermayer.cc> wrote: > Fixes: out of array access > Fixes: > 67021/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-4883576579489792 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by > <https://github.com/google/oss-fuzz/tree/master/projects/ffmpegSigned-off-by>: > Michael Niedermayer <michael@niedermayer.cc> > Pushed this one. Thank you, Michael. > --- > libavcodec/cbs_h266_syntax_template.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libavcodec/cbs_h266_syntax_template.c > b/libavcodec/cbs_h266_syntax_template.c > index 49fb12ba77..0aae9fdfd5 100644 > --- a/libavcodec/cbs_h266_syntax_template.c > +++ b/libavcodec/cbs_h266_syntax_template.c > @@ -2072,6 +2072,8 @@ static int FUNC(pps) (CodedBitstreamContext *ctx, > RWContext *rw, > > tile_x = tile_idx % current->num_tile_columns; > tile_y = tile_idx / current->num_tile_columns; > + if (tile_y >= current->num_tile_rows) > + return AVERROR_INVALIDDATA; > > ctu_x = 0, ctu_y = 0; > for (j = 0; j < tile_x; j++) { > -- > 2.17.1 > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2024-03-23 15:04 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-21 1:15 [FFmpeg-devel] [PATCH 1/4] avcodec/mscc: move frame allocates to later Michael Niedermayer 2024-03-21 1:15 ` [FFmpeg-devel] [PATCH 2/4] avformat/iamf_reader: return REDO on failure to read Michael Niedermayer 2024-03-21 2:22 ` James Almer 2024-03-21 3:51 ` Michael Niedermayer 2024-03-21 1:15 ` [FFmpeg-devel] [PATCH 3/4] avcodec/cbs_h266_syntax_template: Check tile_y Michael Niedermayer 2024-03-23 15:04 ` Nuo Mi [this message] 2024-03-21 1:15 ` [FFmpeg-devel] [PATCH 4/4] avformat/iamf: Check language_label Michael Niedermayer 2024-03-21 2:17 ` James Almer 2024-03-21 3:55 ` Michael Niedermayer 2024-04-01 1:05 ` Michael Niedermayer
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CAFXK13eCEyXLGyf=vQhiejiJ7fE3vn=zxGU3_T0WzQg=6smEvw@mail.gmail.com' \ --to=nuomi2021@gmail.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git