Doing fuzz testing, I've seen the same performance bug in parsers for at least 3...

@bradlarsen@infosec.exchange

Doing fuzz testing, I've seen the same performance bug in parsers for at least 3 systems, where a line number for location reporting is determined from a byte offset by looping through the input, itself done in a loop. Surprise O(n^2)!

It probably doesn't show up easily in "normal" use patterns, but when you start fuzz testing you hit it all the time.