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:
4ace2d2
)
avcodec/dfa: Fix signed integer overflow: -2147483648 - 1 cannot be represented in...
author
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 6 May 2017 14:38:22 +0000
(16:38 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 6 May 2017 14:40:29 +0000
(16:40 +0200)
Fixes: 1368/clusterfuzz-testcase-minimized-
4507293276176384
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dfa.c
patch
|
blob
|
history
diff --git
a/libavcodec/dfa.c
b/libavcodec/dfa.c
index
5ddb647
..
3ea12f0
100644
(file)
--- a/
libavcodec/dfa.c
+++ b/
libavcodec/dfa.c
@@
-67,7
+67,8
@@
static int decode_tsw1(GetByteContext *gb, uint8_t *frame, int width, int height
const uint8_t *frame_start = frame;
const uint8_t *frame_end = frame + width * height;
int mask = 0x10000, bitbuf = 0;
- int v, count, segments;
+ int v, count;
+ unsigned segments;
unsigned offset;
segments = bytestream2_get_le32(gb);