|
|
|
|
|
by mahkoh
719 days ago
|
|
Provenance might be used as justification now but the actual rules are simpler and stricter. After freeing (or reallocing) a pointer, the application must not inspect the pointer value anymore. Even `new_pointer == old_pointer` is not allowed. IIRC, one justification for this was to account for systems with non-flat memory where inspecting the value of the old pointer might cause a processor exception. |
|