News for hackers. Stuff that matters.
Re:Zig's Curious Multi-Sequence for Loops by adwn on Monday February 27, 2023 @12:18PM (#34959113)
> If you look at Jarred's comment nearby he reveals that the pointers in question are special pointers, e.g. 0x0, 0x1, 0x2, etc.

Is that guaranteed by the language semantics, or could it possibly change at some point in the future? If it's the latter, then yes, it is very much Undefined Behavior, and not guaranteed to segfault before opening the door for potential exploits.

There are no comments on this comment yet.