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:
280d140
)
avformat/mov: Change the type of the r/g/b variables
author
Michael Niedermayer
<michael@niedermayer.cc>
Thu, 3 Sep 2015 19:54:44 +0000
(21:54 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Thu, 3 Sep 2015 20:17:00 +0000
(22:17 +0200)
Fixes integer overflow
Fixes: unknown_unknown_31b_795_cov_1818643045_raybauduc.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
764a7b1
..
92d90db
100644
(file)
--- a/
libavformat/mov.c
+++ b/
libavformat/mov.c
@@
-1710,7
+1710,7
@@
static void mov_parse_stsd_video(MOVContext *c, AVIOContext *pb,
if ((color_depth == 2) || (color_depth == 4) || (color_depth == 8)) {
/* for palette traversal */
unsigned int color_start, color_count, color_end;
- unsigned
char
a, r, g, b;
+ unsigned
int
a, r, g, b;
if (color_greyscale) {
int color_index, color_dec;