Message ID | 20210921231438.16335-1-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | 0b761e87c044fe46746eb5849991d0deea40778e |
Headers | show |
Series | [FFmpeg-devel,1/2] avformat/concatdec: Use FAIL() macro instead of direct return in concat_parse_script() | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | success | Make fate finished |
Michael Niedermayer (12021-09-22): > Fixes: memleak > Fixes: 38893/clusterfuzz-testcase-minimized-ffmpeg_dem_CONCAT_fuzzer-4785231933079552 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavformat/concatdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Yes, thanks. Regards,
On Wed, Sep 22, 2021 at 01:20:16PM +0200, Nicolas George wrote: > Michael Niedermayer (12021-09-22): > > Fixes: memleak > > Fixes: 38893/clusterfuzz-testcase-minimized-ffmpeg_dem_CONCAT_fuzzer-4785231933079552 > > > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > > --- > > libavformat/concatdec.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Yes, thanks. will apply thx [...]
diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c index 0886dad88b2..2557f38b26c 100644 --- a/libavformat/concatdec.c +++ b/libavformat/concatdec.c @@ -627,7 +627,7 @@ static int concat_parse_script(AVFormatContext *avf) chapter = avpriv_new_chapter(avf, arg_int[0], AV_TIME_BASE_Q, arg_int[1], arg_int[2], NULL); if (!chapter) - return AVERROR(ENOMEM); + FAIL(ENOMEM); break; default:
Fixes: memleak Fixes: 38893/clusterfuzz-testcase-minimized-ffmpeg_dem_CONCAT_fuzzer-4785231933079552 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavformat/concatdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)