Re:On the history and justification of the C programming lan...
by vonmoltke on Thursday August 18, 2016 @02:09PM
(#12314951)
Those are indeterminate values but they aren't dangling pointers. Dangling pointers are specifically references to an object that has been freed.
Plus, the cases you highlighted are programming errors, not reliance on undefined behavior.
Dangling pointers can arise in other ways: use an uninitialized pointer variable, take the wrong offset from an otherwise valid pointer, etc.