A caller-supplied index is used to read/write an array or a mapping-of-structs whose existence isn't validated. Out-of-range or non-existent ids return zeroed structs that downstream logic treats as real, valid entries.
// getOrder(id) returns orders[id]; a non-existent id returns a zeroed // Order{maker:0, amount:0, filled:false}; fill() then treats it as open.
require(id < items.length, "bad id"); Item storage it = items[id]; require(it.exists, "no item");
Largest recorded losses in the same failure class — related, not the same bug:
The SaferICO scanner runs 201 detectors over your Solidity source, SAFE-0255 among them. Paste an address or the source itself — a small per-scan fee, shown before you sign, or unlimited on any plan.