Re:Xcode 4 ships a buggy compiler
by mikeash on Friday December 30, 2011 @10:03PM
(#3409981)
malloc(0) has to return a pointer you can pass to free(), so it can't be arbitrary junk. The only thing you can do with the pointer returned from alloca() is dereference it. Technically, as pointed out elsewhere, you can compare it with other pointers, but the only real requirement there is that it compare not equal to any other non-NULL pointer.
[ Parent
| on HN ]
There are no comments on this comment yet.