[FFmpeg-cvslog] avcodec/dds: Fix runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
Michael Niedermayer
git at videolan.org
Sun May 7 00:25:11 EEST 2017
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat May 6 22:31:23 2017 +0200| [8a8335de030aa6cb6356bb16c7d3aefc5a80e362] | committer: Michael Niedermayer
avcodec/dds: Fix runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
Fixes: 1380/clusterfuzz-testcase-minimized-650122545122508
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8a8335de030aa6cb6356bb16c7d3aefc5a80e362
---
libavcodec/dds.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dds.c b/libavcodec/dds.c
index 84b440f741..468763e6bf 100644
--- a/libavcodec/dds.c
+++ b/libavcodec/dds.c
@@ -39,7 +39,7 @@
#define DDPF_FOURCC (1 << 2)
#define DDPF_PALETTE (1 << 5)
-#define DDPF_NORMALMAP (1 << 31)
+#define DDPF_NORMALMAP (1U << 31)
enum DDSPostProc {
DDS_NONE = 0,
More information about the ffmpeg-cvslog
mailing list