Commit ecbf42e1 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpegaudio_parser: Consume more than 0 bytes in case of the unsupported mp3adu case

Fixes: Timeout
Fixes: 10966/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MP3ADU_fuzzer-5348695024336896
Fixes: 10969/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MP3ADUFLOAT_fuzzer-5691669402877952

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpegSigned-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit df91af14)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 6fe9f36d
...@@ -100,7 +100,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1, ...@@ -100,7 +100,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
"MP3ADU full parser"); "MP3ADU full parser");
*poutbuf = NULL; *poutbuf = NULL;
*poutbuf_size = 0; *poutbuf_size = 0;
return 0; /* parsers must not return error codes */ return buf_size; /* parsers must not return error codes */
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment