summaryrefslogtreecommitdiff
path: root/libunwind/src/EHHeaderParser.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libunwind/src/EHHeaderParser.hpp')
-rw-r--r--libunwind/src/EHHeaderParser.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libunwind/src/EHHeaderParser.hpp b/libunwind/src/EHHeaderParser.hpp
index 0101835b8e63..f97cca54825f 100644
--- a/libunwind/src/EHHeaderParser.hpp
+++ b/libunwind/src/EHHeaderParser.hpp
@@ -109,6 +109,8 @@ bool EHHeaderParser<A>::findFDE(A &addressSpace, pint_t pc, pint_t ehHdrStart,
hdrInfo))
return false;
+ if (hdrInfo.fde_count == 0) return false;
+
size_t tableEntrySize = getTableEntrySize(hdrInfo.table_enc);
pint_t tableEntry;