Skip to content

Instantly share code, notes, and snippets.

@xv0nfers
xv0nfers / 485152421.md
Last active February 20, 2026 16:38
Nested shift state confusion generates invalid Wasm

Problem Summary:

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.

Root Cause:

  1. Incorrect Reset of heap_access_shift_position_:

    • In the original code, the heap_access_shift_position_ was being reset to kNoHeapAccessShift before the recursive AdditiveExpression call. This caused the shift position to be improperly set when dealing with nested shift expressions.
  • This error was critical in scenarios where heap memory access was involved, as it allowed invalid memory writes, leading to heap-buffer-overflows.
@xv0nfers
xv0nfers / chrome-bug-commit-tracker.py
Last active February 2, 2026 10:45
A lightweight Python script that, given a Chrome bug ID, fetches its Stable Channel Update entry from Chrome Releases RSS and lists all related commits from GitHub and Gerrit
#!/usr/bin/env python3
import sys
import json
import requests
import feedparser
import re
BUG_ID = sys.argv[1] if len(sys.argv) > 1 else None
if not BUG_ID or not BUG_ID.isdigit():
print("Usage: python3 chrome-bug-commit-tracker.py <bug_id>")