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:
ddaae6a
)
Don't memcpy from unallocated memory
author
Roberto Togni
<r_togni@tiscali.it>
Fri, 31 Oct 2003 22:28:19 +0000
(22:28 +0000)
committer
Roberto Togni
<r_togni@tiscali.it>
Fri, 31 Oct 2003 22:28:19 +0000
(22:28 +0000)
Originally committed as revision 2459 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/msrle.c
patch
|
blob
|
history
diff --git
a/libavcodec/msrle.c
b/libavcodec/msrle.c
index
8943ef3
..
f0564a9
100644
(file)
--- a/
libavcodec/msrle.c
+++ b/
libavcodec/msrle.c
@@
-177,7
+177,8
@@
static int msrle_decode_frame(AVCodecContext *avctx,
}
/* grossly inefficient, but...oh well */
- memcpy(s->frame.data[0], s->prev_frame.data[0],
+ if (s->prev_frame.data[0] != NULL)
+ memcpy(s->frame.data[0], s->prev_frame.data[0],
s->frame.linesize[0] * s->avctx->height);
msrle_decode_pal8(s);