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-10-01 18:19:09 +02:00
2021-02-23 10:04:45 +01:00
2021-02-09 16:57:54 -03:00
2021-07-22 18:38:12 +05:30
2021-07-22 18:38:12 +05:30
2021-07-22 18:38:06 +05:30
2021-06-28 15:55:56 -03:00