Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tonyarkles
46 days ago
|
parent
|
context
|
favorite
| on:
System.LongBool
And correspondingly calling free() on the returned value is also unlikely to be particularly well tested.
kragen
46 days ago
|
next
[–]
Well, unless it's NULL. I'm pretty sure that people call free(0) a lot.
int_19h
46 days ago
|
prev
[–]
I mean, these are literally all special values that are explicitly called out in all the relevant standards (both ISO C and POSIX). Anyone who is competent and is writing tests for libc would surely cover that.
kragen
45 days ago
|
parent
[–]
Probably malloc(0) is not
completely
untested, yes. But it's unlikely to be regularly executed by applications.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: