mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1246433 - BaldrMonkey: Avoid shifting a negative signed value, on a CLOSED TREE. r=me
This commit is contained in:
parent
5540b0f3ea
commit
53d1a03526
@ -578,7 +578,7 @@ class Decoder
|
||||
u |= UInt(byte & 0x7F) << shift;
|
||||
shift += 7;
|
||||
} while (shift != numBitsInSevens);
|
||||
if (!readU8(&byte) || (byte & (-1 << remainderBits)))
|
||||
if (!readU8(&byte) || (byte & (unsigned(-1) << remainderBits)))
|
||||
return false;
|
||||
if (out)
|
||||
*out = u | UInt(byte) << numBitsInSevens;
|
||||
|
Loading…
Reference in New Issue
Block a user