Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lasthacker
· 7y ago · 0 comments
malloc fails with a negative argument
Comments
[–]
saagarjha
7y ago
malloc takes a size_t, which is unsigned. A "negative" argument is just something that's absurdly large.
[–]
NullPrefix
7y ago
On 64 bit systems it would result in a call to malloc asking for between 9.2 and 18.4 Exabytes.
[–]
systemBuilder
7y ago
A