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

As far as I know, every compiler is badly broken with arrays greater than SIZE_MAX / 2, so this would be the least of your troubles.


Since I have it at hand, here is a list of examples of how compilers are broken if an array is larger than SIZE_MAX / 2 (which is called PTRDIFF_MAX in the post):

http://trust-in-soft.com/objects-larger-than-ptrdiff_max-byt...




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

Search: