[diff.cpp23.mem] # Annex C (informative) Compatibility [[diff]](./#diff) ## C.1 C++ and ISO C++ 2023 [[diff.cpp23]](diff.cpp23#mem) ### C.1.7 [[mem]](mem "20 Memory management library"): memory management library [diff.cpp23.mem] [1](#1) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/compatibility.tex#L278) **Affected subclause:** [[c.malloc]](c.malloc) **Change:** Calling realloc with a non-null pointer and zero size has erroneous behavior[.](#1.sentence-1) **Rationale:** The C standard library does not define this behavior[.](#1.sentence-2) **Effect on original feature:** Valid C++ 2023 code that calls realloc with a non-null pointer and a size of zero is erroneous and may change behavior[.](#1.sentence-3)