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
..
2021-09-01 14:44:16 +02:00
2021-10-10 17:19:34 +02:00
2021-10-09 12:37:17 +02:00
2021-10-09 12:37:17 +02:00
2021-10-09 12:37:17 +02:00
2014-02-09 11:10:08 +00:00
2009-08-12 00:14:44 +00:00
2021-11-10 10:03:06 +11:00
2021-10-09 12:37:17 +02:00
2014-03-20 23:00:09 +00:00
2009-08-12 00:14:44 +00:00
2003-07-13 22:35:55 +00:00
2011-10-04 03:55:04 +00:00
2021-10-09 12:37:17 +02:00
2021-10-09 12:37:17 +02:00
2006-10-17 01:26:12 +00:00
2009-08-12 00:14:44 +00:00
2011-06-26 12:41:33 +00:00
2021-10-09 12:37:17 +02:00
2022-05-19 22:40:03 +02:00
2012-12-08 17:54:16 +00:00
2012-12-08 17:54:16 +00:00
2012-12-08 17:54:16 +00:00
2006-10-17 01:26:12 +00:00
2006-10-17 01:26:12 +00:00
2022-07-07 14:24:39 +02:00
2022-07-07 14:24:39 +02:00
2022-07-07 14:24:39 +02:00
2017-05-13 10:19:16 +00:00
2017-05-13 10:19:16 +00:00
2004-06-19 18:12:36 +00:00
2006-03-08 13:24:21 +00:00
2009-05-29 00:52:17 +00:00
2003-10-09 15:40:38 +00:00
2003-10-09 15:40:38 +00:00
2004-04-13 19:11:27 +00:00
2021-10-09 12:37:17 +02:00
2005-09-24 19:42:41 +00:00
2005-09-24 19:42:41 +00:00
2005-09-24 19:42:41 +00:00
2006-01-19 03:56:33 +00:00
2021-10-09 12:37:17 +02:00
2009-06-24 04:40:22 +00:00
2006-01-19 03:56:33 +00:00
2021-10-09 12:37:17 +02:00
2018-06-14 17:40:08 +00:00
2021-10-09 12:37:17 +02:00
2021-10-10 17:19:34 +02:00
2021-10-09 12:37:17 +02:00
2021-10-09 12:37:17 +02:00
2021-10-09 12:37:17 +02:00
2021-10-09 12:37:17 +02:00
2021-10-09 12:37:17 +02:00
2021-10-09 12:37:17 +02:00
2021-10-09 12:37:17 +02:00
2021-10-09 12:37:17 +02:00
2008-03-03 01:35:41 +00:00
2021-10-09 12:37:17 +02:00
2021-10-09 12:37:17 +02:00
2021-10-09 12:37:17 +02:00
2006-01-20 16:47:20 +00:00
2006-01-20 16:47:20 +00:00
2006-01-20 16:47:20 +00:00
2006-01-20 14:21:28 +00:00
2006-01-20 14:21:28 +00:00
2006-01-20 14:21:28 +00:00
2006-01-20 14:21:28 +00:00
2006-01-20 14:21:28 +00:00
2005-05-24 14:46:02 +00:00