Linus Torvalds writes: (Summary) wrote:
But that's not what the code does.
But that's not what the code does.
It never _accessed_ the field. An access would in fact have been a bug (and was the bug that the compiler caused, because it removed the check for NULL). So I think your "it's a field access" is just a syntactic argument and should not semantically be *any* different from doing arithmetic on a pointer.
pointer.
Linus
Linus
Linus
[...]
overflow.But that's not what the code does.
But that's not what the code does.
It never _accessed_ the field. An access would in fact have been a bug (and was the bug that the compiler caused, because it removed the check for NULL). So I think your "it's a field access" is just a syntactic argument and should not semantically be *any* different from doing arithmetic on a pointer.
pointer.
Linus
Linus
Linus