HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by lasthacker | Hacker News Reader
Full thread
lasthacker
·
malloc fails with a negative argument
View on HN
saagarjha
·
malloc takes a size_t, which is unsigned. A "negative" argument is just something that's absurdly large.
NullPrefix
·
On 64 bit systems it would result in a call to malloc asking for between 9.2 and 18.4 Exabytes.
systemBuilder
·
A
Reply on news.ycombinator.com