Carlos O'Donell
6484ae5b8c
malloc: Fix -Wuse-after-free warning in tst-mallocalign1 [BZ #26779 ]
...
The test leaks bits from the freed pointer via the return value
in ret, and the compiler correctly identifies this issue.
We switch the test to use TEST_VERIFY and terminate the test
if any of the pointers return an unexpected alignment.
This fixes another -Wuse-after-free error when compiling glibc
with gcc 12.
Tested on x86_64 and i686 without regression.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit 3a7bed5f5a527dbd87412551f41e42e63aeef07a)
2023-01-11 22:13:37 +01:00
..
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-10-01 18:19:09 +02:00
2021-02-23 10:04:45 +01:00
2021-02-09 16:57:54 -03:00
2021-02-09 16:57:54 -03:00
2021-01-02 12:17:34 -08:00
2021-02-09 16:57:54 -03:00
2021-02-09 16:57:54 -03:00
2021-02-09 16:57:54 -03:00
2021-02-09 16:57:54 -03:00
2021-07-22 18:38:12 +05:30
2021-07-26 10:47:46 +05:30
2021-07-23 13:57:56 +05:30
2021-10-29 14:56:53 +05:30
2021-07-09 06:39:30 -07:00
2022-07-21 17:06:27 +02:00
2021-07-22 18:38:12 +05:30
2021-07-22 18:38:16 +05:30
2021-01-02 12:17:34 -08:00
2021-07-22 18:38:02 +05:30
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-05-12 07:47:11 +05:30
2021-01-02 12:17:34 -08:00
2021-07-22 18:37:57 +05:30
2021-07-22 18:38:06 +05:30
2021-07-22 18:38:06 +05:30
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-05 11:33:16 -03:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-05-11 11:22:33 +02:00
2021-04-21 19:49:51 +02:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-07-22 18:37:59 +05:30
2021-07-22 18:37:59 +05:30
2021-01-02 12:17:34 -08:00
2021-02-09 16:57:54 -03:00
2021-02-09 16:57:54 -03:00
2021-02-09 16:57:54 -03:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-05-25 16:47:01 -04:00
2021-01-02 12:17:34 -08:00
2023-01-11 14:13:24 +01:00
2023-01-11 14:13:24 +01:00
2021-01-02 12:17:34 -08:00
2021-04-07 02:35:50 +02:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2023-01-11 14:13:24 +01:00
2021-10-29 14:56:53 +05:30
2021-01-02 12:17:34 -08:00
2023-01-11 22:13:37 +01:00
2021-01-02 12:17:34 -08:00
2021-06-28 15:55:56 -03:00
2019-06-10 22:12:08 +00:00
2021-03-09 21:07:24 +01:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-07-22 18:37:59 +05:30
2021-01-02 12:17:34 -08:00
2023-01-11 14:13:24 +01:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2023-01-11 14:13:24 +01:00
2021-01-02 12:17:34 -08:00
2021-07-19 08:29:25 +05:30
2021-01-05 11:33:16 -03:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-07-22 18:38:10 +05:30