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:
5512dbe
)
avcodec/vdpau_hevc: Fix potential out-of-bounds write
author
Philip Langdale
<philipl@overt.org>
Thu, 1 Dec 2016 00:13:14 +0000
(16:13 -0800)
committer
Philip Langdale
<philipl@overt.org>
Thu, 1 Dec 2016 00:14:39 +0000
(16:14 -0800)
The maximum number of references is 16, so the index value cannot
exceed 15.
Fixes Coverity CID
1348139
,
1348140
,
1348141
libavcodec/vdpau_hevc.c
patch
|
blob
|
history
diff --git
a/libavcodec/vdpau_hevc.c
b/libavcodec/vdpau_hevc.c
index
03c61dc
..
ce2610f
100644
(file)
--- a/
libavcodec/vdpau_hevc.c
+++ b/
libavcodec/vdpau_hevc.c
@@
-234,7
+234,7
@@
static int vdpau_hevc_start_frame(AVCodecContext *avctx,
const HEVCFrame *frame = &h->DPB[i];
if (frame != h->ref && (frame->flags & (HEVC_FRAME_FLAG_LONG_REF |
HEVC_FRAME_FLAG_SHORT_REF))) {
- if (j > 1
6
) {
+ if (j > 1
5
) {
av_log(avctx, AV_LOG_WARNING,
"VDPAU only supports up to 16 references in the DPB. "
"This frame may not be decoded correctly.\n");