diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-08 06:12:26 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-08 07:35:01 +0400 |
commit | 9db9b209e3a32ecce93378a24fb931d7db35b1c2 (patch) | |
tree | 4995a5fa2830a5ac349f822b96663a75103ec5d2 /libavcodec | |
parent | 1acc9189b4c2c6b3ab39724e0ff80ec95c6683b3 (diff) |
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')
-rw-r--r-- | libavcodec/mmvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c index 9ff6393aec..9a7c10c3ab 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; |