Finding these kind of bugs would have required fuzzing and some kind of bound checking canaries. Not sure all bound checkers work on the hand-optimized assembly.
Or as it turns out an LLM! Not clear whether their agent spawned any classic tools...
> bound checking canaries
I used memory protection for that. mmap a page, align the string start/end to the page boundaries. Catches both bad reads and writes.
> bound checking canaries
I used memory protection for that. mmap a page, align the string start/end to the page boundaries. Catches both bad reads and writes.