Files
shadow/lib
Alejandro Colomar afc4b574b7 lib/alloc/realloc*.h: Always reallocate at least 1 byte
glibc's realloc(3) is broken.  It was originally good (I believe) until
at some point, when it was changed to conform to C89, which had a bogus
specification that required that it returns NULL.  C99 fixed the mistake
from C89, and so glibc's realloc(3) is non-conforming to
C99/C11/POSIX.1-2008.  C17 broke again the definition of realloc(3).

Link: <https://github.com/shadow-maint/shadow/pull/1095>
Link: <https://nabijaczleweli.xyz/content/blogn_t/017-malloc0.html>
Link: <https://inbox.sourceware.org/libc-alpha/5gclfbrxfd7446gtwd2x2gfuquy7ukjdbrndphyfmfszxlft76@wwjz7spd4vd7/T/#t>
Co-developed-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Acked-by: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2024-10-22 10:53:06 +02:00
..
2023-08-31 08:55:26 +02:00
2023-02-24 12:44:14 -06:00
2023-08-31 08:55:26 +02:00
2023-08-31 08:55:26 +02:00
2023-08-31 08:55:26 +02:00
2024-09-13 22:27:08 +02:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2023-08-31 08:55:26 +02:00
2024-03-10 19:56:40 -05:00
2024-09-13 22:27:08 +02:00
2023-08-31 08:55:26 +02:00
2023-08-31 08:55:26 +02:00
2023-08-31 08:55:26 +02:00
2024-07-11 22:42:58 -05:00
2024-07-11 22:42:58 -05:00
2024-07-11 22:42:58 -05:00
2021-12-23 19:36:50 -06:00
2024-08-30 21:44:07 -05:00
2021-12-23 19:36:50 -06:00
2024-07-11 22:42:58 -05:00
2023-08-31 08:55:26 +02:00
2022-12-22 11:43:29 +01:00
2023-08-31 08:55:26 +02:00
2022-12-22 11:43:29 +01:00
2024-08-30 21:44:07 -05:00
2023-08-31 08:55:26 +02:00
2021-12-23 19:36:50 -06:00
2022-05-24 07:49:11 -05:00
2024-01-05 15:41:12 -06:00
2023-08-31 08:55:26 +02:00
2021-12-23 19:36:50 -06:00
2024-08-30 21:44:07 -05:00
2023-08-31 08:55:26 +02:00
2024-09-18 14:52:05 +02:00
2024-09-18 14:52:05 +02:00
2023-08-31 08:55:26 +02:00
2024-09-13 22:27:08 +02:00
2024-07-11 22:42:58 -05:00
2024-08-30 21:44:07 -05:00
2021-12-23 19:36:50 -06:00
2024-07-11 22:42:58 -05:00
2021-12-23 19:36:50 -06:00
2024-09-18 14:52:05 +02:00
2024-08-30 21:44:07 -05:00
2024-02-20 18:53:53 +01:00
2023-08-31 08:55:26 +02:00
2024-07-11 22:42:58 -05:00
2010-03-18 19:23:00 +00:00
2024-09-29 12:23:05 +02:00
2023-08-31 08:55:26 +02:00
2024-09-12 11:43:39 +02:00
2023-08-31 08:55:26 +02:00
2023-08-31 08:55:26 +02:00
2023-08-31 08:55:26 +02:00
2023-08-31 08:55:26 +02:00
2023-08-31 08:55:26 +02:00
2023-08-31 08:55:26 +02:00
2023-08-31 08:55:26 +02:00