OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d401c37
)
avcodec/sunrast: Fix input buffer pointer check
author
Michael Niedermayer
<michael@niedermayer.cc>
Tue, 1 Nov 2016 18:24:49 +0000
(19:24 +0100)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Wed, 2 Nov 2016 11:06:22 +0000
(12:06 +0100)
Fixes: out of array read
Fixes: poc.dat
Found-by: Bingchang, Liu @VARAS of IIE
Tested-by: bc L <l.bing.chang.bc@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/sunrast.c
patch
|
blob
|
history
diff --git
a/libavcodec/sunrast.c
b/libavcodec/sunrast.c
index
25e11f6
..
0af5626
100644
(file)
--- a/
libavcodec/sunrast.c
+++ b/
libavcodec/sunrast.c
@@
-168,7
+168,7
@@
static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
}
} else {
for (y = 0; y < h; y++) {
- if (buf_end - buf < len)
+ if (buf_end - buf <
a
len)
break;
memcpy(ptr, buf, len);
ptr += stride;