News for hackers. Stuff that matters.
Re:Essential C [pdf] by astrange on Sunday March 06, 2022 @10:56PM (#30584080)
The issue in C99 is:

> The lifetime of an allocated object extends from the allocation until the deallocation. Each such allocation shall yield a pointer to an object disjoint from any other object.

If the implementation of malloc is visible, then it can be inlined etc., and then you have to deal with the effects of this obviously not being true.

Re:Essential C [pdf] by wrycoder on Monday March 07, 2022 @12:23AM (#30584479)
It would have been better, if the writer had not used the word “object”.