git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e88cc9
)
avcodec/texturedsp: Fix multiple runtime error: left shift of 255 by 24 places cannot...
author
Michael Niedermayer
<michael@niedermayer.cc>
Sun, 7 May 2017 01:27:17 +0000
(
03:27
+0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sun, 7 May 2017 02:11:21 +0000
(
04:11
+0200)
Fixes: 1386/clusterfuzz-testcase-minimized-
5323086394032128
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/texturedsp.c
patch
|
blob
|
history
diff --git
a/libavcodec/texturedsp.c
b/libavcodec/texturedsp.c
index
5012245
..
6049c96
100644
(file)
--- a/
libavcodec/texturedsp.c
+++ b/
libavcodec/texturedsp.c
@@
-35,7
+35,7
@@
#define RGBA(r, g, b, a) (((uint8_t)(r) << 0) | \
((uint8_t)(g) << 8) | \
((uint8_t)(b) << 16) | \
- ((uint8_t)(a) << 24))
+ ((u
nsigned)(u
int8_t)(a) << 24))
static av_always_inline void extract_color(uint32_t colors[4],
uint16_t color0,