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
fix(parse): fix use-after-free due to misusing rewind_guard
rewind_guard unconditionally rewinds. Lexer transactions use
rewind_guard, so committed transactions will cause
buffering_diag_reporter memory to be freed. This causes a use-after-free
bug (detected by fuzzing and ASAN) with the following input:
const g = async () => {
await (() => {
h##
await f({ ####### });
Fix the bug by rewinding only if the transaction was rolled back.
0 commit comments