mirror of https://gitee.com/Nocallback/glibc.git
Browse Source
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>maskray/relr
1 changed files with 11 additions and 9 deletions
Loading…
Reference in new issue