7 ms·
malloc fails with a negative argument
by lasthacker 7y ago
malloc fails with a negative argument
- saagarjha 7y agomalloc 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.
- systemBuilder 7y agoA