mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
1acc9189b4
commit
9db9b209e3
|
@ -49,7 +49,7 @@
|
||||||
typedef struct MmContext {
|
typedef struct MmContext {
|
||||||
AVCodecContext *avctx;
|
AVCodecContext *avctx;
|
||||||
AVFrame *frame;
|
AVFrame *frame;
|
||||||
int palette[AVPALETTE_COUNT];
|
unsigned int palette[AVPALETTE_COUNT];
|
||||||
GetByteContext gb;
|
GetByteContext gb;
|
||||||
} MmContext;
|
} MmContext;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue