From: Aneesh Dogra Date: Sun, 27 Nov 2011 20:56:52 +0000 (+0530) Subject: indeo3: error out if no motion vector is set. X-Git-Tag: v0.8b1~418 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97980db4870675baf553dc190051161ecffa9d77;p=platform%2Fupstream%2Flibav.git indeo3: error out if no motion vector is set. This fixes a crash on a corrupt bitstream (bugzilla #93). Signed-off-by: Ronald S. Bultje --- diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c index 2c7e96b..e266aee 100644 --- a/libavcodec/indeo3.c +++ b/libavcodec/indeo3.c @@ -756,6 +756,8 @@ static int parse_bintree(Indeo3DecodeContext *ctx, AVCodecContext *avctx, av_log(avctx, AV_LOG_ERROR, "SkipCell procedure not implemented yet!\n"); CHECK_CELL + if(!curr_cell.mv_ptr) + return AVERROR_INVALIDDATA; copy_cell(ctx, plane, &curr_cell); return 0; }