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
[MERGE #5888@Cellule] WebAssembly LEB128 check extra bits
Merge pull request #5888 from Cellule:users/micfer/leb128
When reading the last byte of a LEB128, the additional unused bits should be all zeros (or can be all ones if signed LEB128).
For instance, when reading a uint32, you need to read 5 bytes with 7 bits used per bytes that's 35 bits, so there are 3 bits that needs to be checked.
This doesn't change anything in practice other than spec compliance.
I took the opportunity to simplify the LEB128 decoding code
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/microsoft/chakracore/5888)
<!-- Reviewable:end -->
0 commit comments