projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b6ee58
)
indeo3: error out if no motion vector is set.
author
Aneesh Dogra
<lionaneesh@gmail.com>
Sun, 27 Nov 2011 20:56:52 +0000
(
02:26
+0530)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Sun, 27 Nov 2011 21:30:00 +0000
(13:30 -0800)
This fixes a crash on a corrupt bitstream (bugzilla #93).
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/indeo3.c
patch
|
blob
|
history
diff --git
a/libavcodec/indeo3.c
b/libavcodec/indeo3.c
index
2c7e96b
..
e266aee
100644
(file)
--- 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;
}