News for hackers. Stuff that matters.
Re:Null Pointer Dereferencing Causes Undefined Behavior by ehmmm on Tuesday April 21, 2015 @08:42PM (#9418042)
Sure, &foo->bar looks like foo + offsetof(struct thingity, bar), but there is no pointer arithmetic involved since C doesn't specify how the member access ( -> or . ) is actually calculated.

It does however specify that [] operator is equivalent to pointer arithmetic. But we are talking ->,. operators and not [].

There are no comments on this comment yet.