You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Fix memcpy out-of-bounds.
patch by Michel Bardiaux, mbardiaux mediaxim be Originally committed as revision 7780 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
committed by
Diego Biurrun
parent
960e48f8f0
commit
e8f917d6fd
@@ -187,7 +187,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
|
||||
switch(depth){
|
||||
case 24:
|
||||
for(i = 0; i < avctx->height; i++){
|
||||
memcpy(ptr, buf, n);
|
||||
memcpy(ptr, buf, avctx->width*(depth>>3));
|
||||
buf += n;
|
||||
ptr += linesize;
|
||||
}
|
||||
|
Reference in New Issue
Block a user