]> sourceware.org Git - glibc.git/commit
Fix getting return address in elf/tst-audit28.c.
authorStefan Liebler <stli@linux.ibm.com>
Thu, 13 Jul 2023 13:13:48 +0000 (15:13 +0200)
committerStefan Liebler <stli@linux.ibm.com>
Wed, 19 Jul 2023 11:18:06 +0000 (13:18 +0200)
commit5d72e7e41a7860b911251bfc8dd3641460cc20a0
treed10ccc37da451376db9c6fea437494561791d66a
parent8b9a0af8ca012217bf90d1dc0694f85b49ae09da
Fix getting return address in elf/tst-audit28.c.

Starting with commit 1bcfe0f732066ae5336b252295591ebe7e51c301, the
test was enhanced and the object for __builtin_return_address (0)
is searched with _dl_find_object.

Unfortunately on e.g. s390 (31bit), a postprocessing step is needed
as the highest bit has to be masked out.  This can be done with
__builtin_extract_return_addr.

Without this postprocessing, _dl_find_object returns with -1 and the
content of dlfo is invalid, which may lead to segfaults in basename.
Therefore those checks are now only done on success.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
elf/tst-auditmod28.c
This page took 0.042358 seconds and 5 git commands to generate.