Hacker News new | ask | show | jobs
by reillyrider 6 days ago
The failure for unsigned is usually much easier to catch because it typically leads to instant crash (ptr[index] with index being close to 2^64 is pretty much always a seg fault) whereas index being signed and -1 usually "works" to read and write to, but has subtle problems.