Module: libav Branch: master Commit: 6e24b9488e67849a28e64a8056e05f83cf439229
Author: Michael Niedermayer <[email protected]> Committer: Reinhard Tartler <[email protected]> Date: Fri Nov 18 19:10:21 2011 +0100 svq1dec: call avcodec_set_dimensions() after dimensions changed. Fixes NGS00148, CVE-2011-4579 Found-by: Phillip Langlois Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/svq1dec.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c index 7eb6e60..69dbd1b 100644 --- a/libavcodec/svq1dec.c +++ b/libavcodec/svq1dec.c @@ -659,6 +659,7 @@ static int svq1_decode_frame(AVCodecContext *avctx, av_dlog(s->avctx, "Error in svq1_decode_frame_header %i\n",result); return result; } + avcodec_set_dimensions(avctx, s->width, s->height); //FIXME this avoids some confusion for "B frames" without 2 references //this should be removed after libavcodec can handle more flexible picture types & ordering _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
