]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Fix UB on _dl_map_object_from_fd
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 7 May 2025 14:17:29 +0000 (11:17 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 2 Jun 2025 16:32:19 +0000 (13:32 -0300)
commite529bfe8dee4bfde3ac74927b5b7b8df65cf3bb0
treeecf137ce2a7e5be8a45d6041f2fb82a8252fe9aa
parent1642570563434ff0f15b36edc0b92ab3c7c934ee
elf: Fix UB on _dl_map_object_from_fd

On 32-bit architecture ubsan triggers:

UBSAN: Undefined behaviour in dl-load.c:1345:54 pointer index expression with base 0x00612508 overflowed  to 0xf7c3a508

Use explicit uintptr_t operation instead.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
elf/dl-load.c