Y
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
xigoi
530 days ago
If that happens, you’re going to get an out-of-bounds error no matter how you implement your binary search.
link
ajuc
530 days ago
In Java. In C you just access random memory values (or segfault).
link
xigoi
530 days ago
Yes, which doesn’t contradict my point.
link