Assembly writes past allocated memory or mismanages the free-memory pointer (0x40), overwriting adjacent data structures and producing exploitable corruption.
assembly {
let p := mload(0x40)
mstore(p, val)
mstore(0x40, add(p, 0x20)) // advance free pointer
}
Largest recorded losses in the same failure class — related, not the same bug:
The SaferICO scanner runs 201 detectors over your Solidity source, SAFE-0032 among them. Paste an address or the source itself — a small per-scan fee, shown before you sign, or unlimited on any plan.