ftmemsim-valgrind/memcheck/tests/realloc_size_zero.stderr.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

8 lines
289 B
Plaintext

realloc() with size 0
at 0x........: realloc (vg_replace_malloc.c:...)
by 0x........: main (realloc_size_zero.c:11)
Address 0x........ is 0 bytes inside a block of size 1,024 alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: main (realloc_size_zero.c:8)