mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 01:51:29 +00:00
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.
8 lines
208 B
Plaintext
8 lines
208 B
Plaintext
realloc() with size 0
|
|
at 0x........: realloc (vg_replace_malloc.c:...)
|
|
...
|
|
Address 0x........ is 0 bytes inside a block of size 1,024 alloc'd
|
|
at 0x........: malloc (vg_replace_malloc.c:...)
|
|
...
|
|
|