Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-29 14:51:08 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-29 14:51:42 +0300
commitc49fa2a51452eeba0cf2c14ce999ddeadf69aa4f (patch)
treef80acb70c6479753d64775e9b1128a4ad9efca66 /libavcodec/dds.c
parentf3da6fbff864e05e8871dd04222143abdee9e77b (diff)
avcodec/dds: Fix runtime error: left shift of 145 by 24 places cannot be represented in type 'int'
Fixes: 1891/clusterfuzz-testcase-minimized-6274417925554176 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/dds.c')
-rw-r--r--libavcodec/dds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dds.c b/libavcodec/dds.c
index bc11bdb0fa..f026f9cd5a 100644
--- a/libavcodec/dds.c
+++ b/libavcodec/dds.c
@@ -687,7 +687,7 @@ static int dds_decode(AVCodecContext *avctx, void *data,
(frame->data[1][2+i*4]<<0)+
(frame->data[1][1+i*4]<<8)+
(frame->data[1][0+i*4]<<16)+
- (frame->data[1][3+i*4]<<24)
+ ((unsigned)frame->data[1][3+i*4]<<24)
);
}
frame->palette_has_changed = 1;