mirror of
https://github.com/webmproject/libwebp.git
synced 2025-01-27 15:12:54 +01:00
Merge "dec/vp8l: prevent signed int overflow in left shift ops"
This commit is contained in:
commit
b7f19b8311
@ -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