[FFmpeg-cvslog] avcodec/mpegaudio_parser: Initialize poutbuf*
Michael Niedermayer
git at videolan.org
Tue Nov 20 18:39:24 EET 2018
ffmpeg | branch: release/2.8 | Michael Niedermayer <michael at niedermayer.cc> | Sun Aug 5 14:51:36 2018 +0200| [a36d649ffce62932b4a1ae59a0403568fa648c2a] | committer: Michael Niedermayer
avcodec/mpegaudio_parser: Initialize poutbuf*
Possibly fixes: null pointer dereference
Possibly fixes: 9352/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MP3ADUFLOAT_fuzzer-5146068961460224
Fixes: Heap-use-after-free
Fixes: 9453/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MP3ADUFLOAT_fuzzer-5137954375729152
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 0f4c3b0b8e5435d13fd3b64c91969b31c3c018dc)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a36d649ffce62932b4a1ae59a0403568fa648c2a
---
libavcodec/mpegaudio_parser.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/mpegaudio_parser.c b/libavcodec/mpegaudio_parser.c
index b66e8b0561..a358069dab 100644
--- a/libavcodec/mpegaudio_parser.c
+++ b/libavcodec/mpegaudio_parser.c
@@ -98,6 +98,8 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
} else if (codec_id == AV_CODEC_ID_MP3ADU) {
avpriv_report_missing_feature(avctx,
"MP3ADU full parser");
+ *poutbuf = NULL;
+ *poutbuf_size = 0;
return 0; /* parsers must not return error codes */
}
More information about the ffmpeg-cvslog
mailing list