News for hackers. Stuff that matters.
Re:Malloc Never Fails (2012) by lasthacker on Monday June 10, 2019 @04:39AM (#20144911)
malloc fails with a negative argument
Re:Malloc Never Fails (2012) by saagarjha on Monday June 10, 2019 @05:01AM (#20145025)
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