Hacker News new | ask | show | jobs
by ajuc 530 days ago
It's as simple as replacing one NULL character with something else. Or 1 length field.
1 comments

If that happens, you’re going to get an out-of-bounds error no matter how you implement your binary search.
In Java. In C you just access random memory values (or segfault).
Yes, which doesn’t contradict my point.