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

How many systems today get calloc() wrong? I checked the implementation of quite a few open source implementations a year or two back, and I don't recall seeing one get it wrong.


The question is whether they do overflow checks if you pass in two very large integers...


Exactly. A conforming implementation must do that. I didn't find one that doesn't, although I didn't look too hard either.




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

Search: