Conversation

Is taking a pointer to the interior of a contiguously-laid-out array, then shortening the length of the array and dereferencing that now-dangling pointer, a spatial or temporal memory safety violation? Seems to me that the distinction gets very blurred in this case.
7
16
Replying to and
I'm saying in a C or C-like regime the operations don't exist. So either we're talking about just breaking some interface contract (where the slots still "exist" but there's a contract not to use them) or realloc in which case it's temporal because the object was freed.