aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-06 22:31:23 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-20 03:41:33 +0200
commit5b56c2d83a33f17dcb0c20fea0f4dd775adac7e4 (patch)
tree402b76426b286c6e192d595a5679c842c04c95fe
parent191e0f7e2b882eb20d696501603285c7192312f6 (diff)
downloadffmpeg-5b56c2d83a33f17dcb0c20fea0f4dd775adac7e4.tar.gz
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@niedermayer.cc> (cherry picked from commit 8a8335de030aa6cb6356bb16c7d3aefc5a80e362) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/dds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dds.c b/libavcodec/dds.c
index 9e29ada787..9472d86836 100644
--- a/libavcodec/dds.c
+++ b/libavcodec/dds.c
@@ -38,7 +38,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,