mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-13 07:22:52 +01:00
dec/vp8l: prevent signed int overflow in left shift ops
force unsigned when shifting by 24. Change-Id: I6f9ca5fa2109e59b1d46a909136384fc6dc8ca0b
This commit is contained in:
parent
38e2db3e16
commit
e69a1df4b7
@ -851,7 +851,7 @@ static int DecodeImageData(VP8LDecoder* const dec, uint32_t* const data,
|
||||
VP8LFillBitWindow(br);
|
||||
blue = ReadSymbol(&htree_group->htrees_[BLUE], br);
|
||||
alpha = ReadSymbol(&htree_group->htrees_[ALPHA], br);
|
||||
*src = (alpha << 24) | (red << 16) | (green << 8) | blue;
|
||||
*src = ((uint32_t)alpha << 24) | (red << 16) | (green << 8) | blue;
|
||||
AdvanceByOne:
|
||||
++src;
|
||||
++col;
|
||||
|
Loading…
x
Reference in New Issue
Block a user