[FFmpeg-cvslog] AMV: Fix possibly exploitable crash.

Michael Niedermayer git at videolan.org
Tue Apr 26 12:06:54 CEST 2011


ffmpeg | branch: release/0.6 | Michael Niedermayer <michaelni at gmx.at> | Thu Apr 21 22:04:21 2011 +0200| [9b919571e506fbb72b81a35ca1e7c1bd6efc4209] | committer: Michael Niedermayer

AMV: Fix possibly exploitable crash.
Reported-at: Thu, 21 Apr 2011 14:38:25 +0000
Reported-by: Dominic Chell <Dominic.Chell at ngssecure.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 89f903b3d5ec38c9c5d90fba7e626fa0eda61a32)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9b919571e506fbb72b81a35ca1e7c1bd6efc4209
---

 libavcodec/sp5xdec.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libavcodec/sp5xdec.c b/libavcodec/sp5xdec.c
index 754926a..0899902 100644
--- a/libavcodec/sp5xdec.c
+++ b/libavcodec/sp5xdec.c
@@ -90,7 +90,6 @@ static int sp5x_decode_frame(AVCodecContext *avctx,
     recoded[j++] = 0xFF;
     recoded[j++] = 0xD9;
 
-    avctx->flags &= ~CODEC_FLAG_EMU_EDGE;
     av_init_packet(&avpkt_recoded);
     avpkt_recoded.data = recoded;
     avpkt_recoded.size = j;
@@ -216,6 +215,6 @@ AVCodec amv_decoder = {
     NULL,
     ff_mjpeg_decode_end,
     sp5x_decode_frame,
-    CODEC_CAP_DR1,
+    0,
     .long_name = NULL_IF_CONFIG_SMALL("AMV Video"),
 };



More information about the ffmpeg-cvslog mailing list