Closed xcrash closed 11 years ago
In this particular case, it's trivial to show (http://www.reddit.com/r/programming/comments/1k6zg2/why_store_in_disk_when_you_have_%CF%80_%CF%80fs_the/cbm5yky) that every byte's index is found before you reach SHRT_MAX (65536)
during writing
if you are not able to find index that makes "(get_byte(index) == *buf" to true, index will be SHRT_MAX or 0...
So when you will decode it as
you will receive wrong value.