The issue 485152421 stems from an incorrect handling of nested shift expressions within the ASM.js parsing code, leading to invalid Wasm modules being generated. This bug results in heap-buffer-overflows during the execution of certain Wasm code, particularly those that involve memory access manipulation through shift operations.
-
Incorrect Reset of
heap_access_shift_position_:- In the original code, the
heap_access_shift_position_was being reset tokNoHeapAccessShiftbefore the recursiveAdditiveExpressioncall. This caused the shift position to be improperly set when dealing with nested shift expressions.
- In the original code, the
- This error was critical in scenarios where heap memory access was involved, as it allowed invalid memory writes, leading to heap-buffer-overflows.