Files
valgrind/memcheck/tests/realloc_size_zero_supp.stdout.exp
Paul Floyd 50bded71b2 Bug 436413 - Warn about realloc of size zero
Adds a new warning to memcheck when realloc is used with a size of 0.
For a long time this has been "implementation defined" and so
non-portable. With C23 it will become UB.

Also adds a switch to turn off the error generation and a
second switch to select between the most common
"implementation" behaviours. The defaults for this second
switch are baked in at build time.
2023-03-10 21:55:14 +01:00

3 lines
55 B
Plaintext

p not NULL after realloc 0
p2 not NULL after realloc 0