Re:Malloc Never Fails (2012)
by lasthacker on Monday June 10, 2019 @04:39AM
(#20144911)
malloc fails with a negative argument
[ Parent
| on HN ]
malloc takes a size_t, which is unsigned. A "negative" argument is just something that's absurdly large.
Re:Malloc Never Fails (2012)
by NullPrefix on Monday June 10, 2019 @05:42AM
(#20145180)
On 64 bit systems it would result in a call to malloc asking for between 9.2 and 18.4 Exabytes.
Re:Malloc Never Fails (2012)
by systemBuilder on Monday June 10, 2019 @11:07PM
(#20152770)
A