Commit fe99025b authored by Alex Beregszaszi's avatar Alex Beregszaszi

10l memory corruption bug found by Steven Johnson

Originally committed as revision 7163 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b9d32859
...@@ -536,7 +536,7 @@ static int flic_decode_frame_15_16BPP(AVCodecContext *avctx, ...@@ -536,7 +536,7 @@ static int flic_decode_frame_15_16BPP(AVCodecContext *avctx,
case FLI_BLACK: case FLI_BLACK:
/* set the whole frame to 0x0000 which is balck in both 15Bpp and 16Bpp modes. */ /* set the whole frame to 0x0000 which is balck in both 15Bpp and 16Bpp modes. */
memset(pixels, 0x0000, memset(pixels, 0x0000,
s->frame.linesize[0] * s->avctx->height * 2); s->frame.linesize[0] * s->avctx->height);
break; break;
case FLI_BRUN: case FLI_BRUN:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment