[FFmpeg-cvslog] rv10: Validate the dimensions set from the container
Martin Storsjö
git at videolan.org
Thu Sep 19 13:34:00 CEST 2013
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon Sep 16 15:40:57 2013 +0300| [5372cda67109848d22146289e401669266217e80] | committer: Martin Storsjö
rv10: Validate the dimensions set from the container
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5372cda67109848d22146289e401669266217e80
---
libavcodec/rv10.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c
index 0d3b648..2c76bb2 100644
--- a/libavcodec/rv10.c
+++ b/libavcodec/rv10.c
@@ -432,6 +432,9 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n");
return AVERROR_INVALIDDATA;
}
+ if ((ret = av_image_check_size(avctx->coded_width,
+ avctx->coded_height, 0, avctx)) < 0)
+ return ret;
ff_MPV_decode_defaults(s);
More information about the ffmpeg-cvslog
mailing list