summaryrefslogtreecommitdiffstats
path: root/libavcodec/mmvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-08 04:12:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-08 05:35:01 +0200
commit9db9b209e3a32ecce93378a24fb931d7db35b1c2 (patch)
tree4995a5fa2830a5ac349f822b96663a75103ec5d2 /libavcodec/mmvideo.c
parent1acc9189b4c2c6b3ab39724e0ff80ec95c6683b3 (diff)
downloadffmpeg-streaming-9db9b209e3a32ecce93378a24fb931d7db35b1c2.zip
ffmpeg-streaming-9db9b209e3a32ecce93378a24fb931d7db35b1c2.tar.gz
avcodec/mmvideo: Fix undefined behavior (left shift of negative value)
Fixes: asan_heap-oob_4da4f3_8_asan_heap-oob_4da4f3_419_scene1a.mm Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mmvideo.c')
-rw-r--r--libavcodec/mmvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c
index 9ff6393..9a7c10c 100644
--- a/libavcodec/mmvideo.c
+++ b/libavcodec/mmvideo.c
@@ -49,7 +49,7 @@
typedef struct MmContext {
AVCodecContext *avctx;
AVFrame *frame;
- int palette[AVPALETTE_COUNT];
+ unsigned int palette[AVPALETTE_COUNT];
GetByteContext gb;
} MmContext;
OpenPOWER on IntegriCloud