[SCM] libav/experimental: Check for invalid decode op-codes, fixes issue 2522.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:21:42 UTC 2013
The following commit has been merged in the experimental branch:
commit 2843502ea424a095b39bce7577de90730fb2a0c6
Author: Daniel Kang <daniel.d.kang at gmail.com>
Date: Mon Jan 10 10:47:10 2011 +0000
Check for invalid decode op-codes, fixes issue 2522.
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26295 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/interplayvideo.c b/libavcodec/interplayvideo.c
index b98386f..34f0557 100644
--- a/libavcodec/interplayvideo.c
+++ b/libavcodec/interplayvideo.c
@@ -99,6 +99,10 @@ static int copy_from(IpvideoContext *s, AVFrame *src, int delta_x, int delta_y)
motion_offset, s->upper_motion_limit_offset);
return -1;
}
+ if (src->data[0] == NULL) {
+ av_log(s->avctx, AV_LOG_ERROR, "Invalid decode type, corrupted header?\n");
+ return AVERROR(EINVAL);
+ }
s->dsp.put_pixels_tab[!s->is_16bpp][0](s->pixel_ptr, src->data[0] + motion_offset,
s->current_frame.linesize[0], 8);
return 0;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list