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.




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

Search: