[libunwind] [libunwind] fix pc range condition check bug (PR #154902)
Wu Yingcong via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 24 18:52:28 PDT 2025
https://github.com/yingcong-wu updated https://github.com/llvm/llvm-project/pull/154902
>From 57ebc553828bf696b4bde30789e609ba96e94d6d Mon Sep 17 00:00:00 2001
From: Wu Yingcong <yingcong.wu at intel.com>
Date: Fri, 22 Aug 2025 15:16:47 +0800
Subject: [PATCH 1/2] fix missing by one bug
---
libunwind/src/DwarfParser.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libunwind/src/DwarfParser.hpp b/libunwind/src/DwarfParser.hpp
index 7e85025dd054d..25250e0810987 100644
--- a/libunwind/src/DwarfParser.hpp
+++ b/libunwind/src/DwarfParser.hpp
@@ -273,7 +273,7 @@ bool CFI_Parser<A>::findFDE(A &addressSpace, pint_t pc, pint_t ehSectionStart,
pint_t pcRange = addressSpace.getEncodedP(
p, nextCFI, cieInfo->pointerEncoding & 0x0F);
// Test if pc is within the function this FDE covers.
- if ((pcStart < pc) && (pc <= pcStart + pcRange)) {
+ if ((pcStart <= pc) && (pc < pcStart + pcRange)) {
// parse rest of info
fdeInfo->lsda = 0;
// check for augmentation length
>From 3b1e1f76fc66fbcc549280fd9a60eeeb6eab52ca Mon Sep 17 00:00:00 2001
From: Wu Yingcong <yingcong.wu at intel.com>
Date: Mon, 25 Aug 2025 09:52:18 +0800
Subject: [PATCH 2/2] empty commit
trigger ci
More information about the cfe-commits
mailing list