[FFmpeg-cvslog] avcodec/wmaprodec: Set packet_loss when we error out on a sanity check
Michael Niedermayer
git at videolan.org
Fri Apr 24 02:12:03 EEST 2020
ffmpeg | branch: release/2.8 | Michael Niedermayer <michael at niedermayer.cc> | Tue Nov 12 20:25:00 2019 +0100| [7c15568a5030511c8d9bbad480fbeec179c553f9] | committer: Michael Niedermayer
avcodec/wmaprodec: Set packet_loss when we error out on a sanity check
Fixes: left shift of negative value -34
Fixes: 18719/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMAPRO_fuzzer-5642658173419520
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 a9cbd25d89dbdf72f7b616fdf672d7da36143cfe)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7c15568a5030511c8d9bbad480fbeec179c553f9
---
libavcodec/wmaprodec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index e47102945a..3aa3e6350a 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -1548,6 +1548,7 @@ static int decode_packet(AVCodecContext *avctx, void *data,
if (buf_size < avctx->block_align) {
av_log(avctx, AV_LOG_ERROR, "Input packet too small (%d < %d)\n",
buf_size, avctx->block_align);
+ s->packet_loss = 1;
return AVERROR_INVALIDDATA;
}
More information about the ffmpeg-cvslog
mailing list