Comment

Comment by nyc_pizzadev

> I suspect most have a false sense of security as the compiler will elide all stores that are happening in a struct about to be freed

The magic field is reset before returning the pointer to the allocator, so it’s definitely a live write to a valid pointer.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton