Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I guess it's a simply off-by-one error. Most likely they are reading the file data into buffers of size 128, but then only compare the first 127 characters of each buffer (e.g., because they use < instead of <= in their loop).


There are two hard problems in computer science: cache invalidation, naming things, and off-by-one errors.


You forgot sign bugs. It's very, very important that you have an even number of them. Many developers forget.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: