|
|
|
|
|
by astrange
528 days ago
|
|
Meant to say you can't implement it as an invalid/trap state. This is possible in some implementations but they have to cooperate with you to do it. > In particular getting valid addresses to other objects from out-of-bounds address arithmetic is not just conformant with the C standard but by far the most common conforming behavior. One reason calculating out of bounds addresses might not work out is the calculation might cause the pointer to overflow, and then surprising things might happen like comparisons failing or tag bits in the high bytes getting corrupted. |
|