logoalt Hacker News

f1shylast Thursday at 6:19 PM1 replyview on HN

Isn’t -1 basically 0xffff which is a constant pointer? What am I missinterpreting?


Replies

comexlast Thursday at 6:24 PM

If you call malloc(0) multiple times (without freeing in between) and get -1 each time, then the pointer is not unique.

show 3 replies