mirror of
git://sourceware.org/git/valgrind.git
synced 2026-01-26 16:29:53 +08: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.
3 lines
55 B
Plaintext
3 lines
55 B
Plaintext
p not NULL after realloc 0
|
|
p2 not NULL after realloc 0
|