From bbb886ae4d6f3d3e35c7e0475a0506d9e93aeb41 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Fri, 25 Jul 2025 07:14:33 -0700 Subject: [PATCH] gcc 14.2.1-3 lax on signed-vs-unsigned compare modified: p_lx_elf.cpp --- src/p_lx_elf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_lx_elf.cpp b/src/p_lx_elf.cpp index 7ccb6e02..87dda4b5 100644 --- a/src/p_lx_elf.cpp +++ b/src/p_lx_elf.cpp @@ -8678,7 +8678,7 @@ Elf32_Sym const *PackLinuxElf32::elf_lookup(char const *name) const if (l_sym <= &dynsym[n_visit++]) throwCantPack("circular DT_HASH chain %d\n", si); // Detect next si out-of-bounds - if (((unsigned int const *)EOM - chains) <= si) + if ((unsigned)((unsigned int const *)EOM - chains) <= si) throwCantPack("bad DT_HASH chain %d\n", si); } } @@ -8783,7 +8783,7 @@ Elf64_Sym const *PackLinuxElf64::elf_lookup(char const *name) const if (l_sym <= &dynsym[n_visit++]) throwCantPack("circular DT_HASH chain %d\n", si); // Detect next si out-of-bounds - if (((unsigned int const *)EOM - chains) <= si) + if ((unsigned)((unsigned int const *)EOM - chains) <= si) throwCantPack("bad DT_HASH chain %d\n", si); } }