Details
-
Task
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
Description
Calling realloc with 0 size has always been deprecated ("Invoking realloc with a size argument equal to zero is an obsolescent feature", 7.31.12 in N2176 / C17).
C23 made it undefined behavior. C++26 is aiming to be rebased on top of C23, incorporating this change.
We should review our calls to (std::)realloc and make sure we never call it with 0 size.