Better HN
topnewbestaskshowjobs
Log inSign up

vyqfi

2 karma · joined Oct 19, 2014 (12y ago) · 1 submissions

Submissions

comment 12y ago · link · parent

I don't get the fuzz. This is like the 3rd or 4th submission about this function. And all it does is testing that

> ((SIZE_MAX / nmemb) >= size)

before doing the size_t multiplication. That's no rocket science. Anyone who's worried about his size_ts overflowing should be able to come up with this.