5 ms·
malloc takes a size_t, which is unsigned. A "negative" argument is just something that's absurdly large.
by saagarjha 7y ago
malloc takes a size_t, which is unsigned. A "negative" argument is just something that's absurdly large.
- NullPrefix 7y agoOn 64 bit systems it would result in a call to malloc asking for between 9.2 and 18.4 Exabytes.