1 From d97cca1e5df812be0e4de1e38091f02bb1e7ec4e Mon Sep 17 00:00:00 2001
2 From: Florian Weimer <fweimer@redhat.com>
3 Date: Tue, 1 Aug 2023 10:27:15 +0200
4 Subject: [PATCH 01/44] stdlib: Improve tst-realpath compatibility with source
7 On GCC before 11, IPA can make the fortified realpath aware that the
8 buffer size is not large enough (8 bytes instead of PATH_MAX bytes).
9 Fix this by using a buffer that is large enough.
11 (cherry picked from commit 510fc20d73de12c85823d9996faac74666e9c2e7)
13 stdlib/tst-realpath.c | 7 ++++++-
14 1 file changed, 6 insertions(+), 1 deletion(-)
16 diff --git a/stdlib/tst-realpath.c b/stdlib/tst-realpath.c
17 index f325c95a44..3694ecd8af 100644
18 --- a/stdlib/tst-realpath.c
19 +++ b/stdlib/tst-realpath.c
21 License along with the GNU C Library; if not, see
22 <https://www.gnu.org/licenses/>. */
28 @@ -50,7 +51,11 @@ void dealloc (void *p)
32 - return (char *)malloc (8);
34 + return (char *)malloc (PATH_MAX);
36 + return (char *)malloc (4096);