News for hackers. Stuff that matters.
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.