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:
960e48f
)
Fix memcpy out-of-bounds.
author
Michel Bardiaux
<mbardiaux@peaktime.be>
Wed, 31 Jan 2007 11:19:48 +0000
(11:19 +0000)
committer
Diego Biurrun
<diego@biurrun.de>
Wed, 31 Jan 2007 11:19:48 +0000
(11:19 +0000)
patch by Michel Bardiaux, mbardiaux mediaxim be
Originally committed as revision 7780 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/bmp.c
patch
|
blob
|
history
diff --git
a/libavcodec/bmp.c
b/libavcodec/bmp.c
index
20cca16
..
30eee65
100644
(file)
--- a/
libavcodec/bmp.c
+++ b/
libavcodec/bmp.c
@@
-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;
}