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:
be9ce6e
)
swscale: increase yuv2rgb table headroom
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 16 Dec 2014 21:21:21 +0000
(22:21 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 16 Dec 2014 22:37:26 +0000
(23:37 +0100)
Fixes out of array access
Fixes: case2_bad_read_yuv2rgbx32.mp4
Found-by: Michal Zalewski <lcamtuf@coredump.cx>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/swscale_internal.h
patch
|
blob
|
history
diff --git
a/libswscale/swscale_internal.h
b/libswscale/swscale_internal.h
index
63b4eca
..
37c2b37
100644
(file)
--- a/
libswscale/swscale_internal.h
+++ b/
libswscale/swscale_internal.h
@@
-39,7
+39,7
@@
#define STR(s) AV_TOSTRING(s) // AV_STRINGIFY is too long
-#define YUVRGB_TABLE_HEADROOM
128
+#define YUVRGB_TABLE_HEADROOM
256
#define MAX_FILTER_SIZE SWS_MAX_FILTER_SIZE