You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There were two overflow cases hidden in the fromVLQSigned function:
1. Integer.MIN_VALUE would return 0, since -0 is just 0. All other negative numbers were fine.
2. Any number with the 31st bit set would be negated, because it used >> instead of >>>. So the 31st bit would be set to the 32nd (sign bit) when encoding, then remain at the 32nd bit when decoding.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=257839681
0 commit comments