aboutsummaryrefslogtreecommitdiff
path: root/lib/libunwind/src/EHHeaderParser.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-08-04 17:39:29 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-08-04 17:39:29 -0700
commit372062b4fe148c17a42ff0938781748ca1dc8328 (patch)
tree099c03a994ffe8a502cbe82281b5ae15e738760c /lib/libunwind/src/EHHeaderParser.hpp
parent42da1d385de8559710e04b5a05234f2dd8bb347e (diff)
downloadzig-372062b4fe148c17a42ff0938781748ca1dc8328.tar.gz
zig-372062b4fe148c17a42ff0938781748ca1dc8328.zip
libunwind: update from LLVM 10 to 11rc1
Diffstat (limited to 'lib/libunwind/src/EHHeaderParser.hpp')
-rw-r--r--lib/libunwind/src/EHHeaderParser.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libunwind/src/EHHeaderParser.hpp b/lib/libunwind/src/EHHeaderParser.hpp
index 0101835b8e..f97cca5482 100644
--- a/lib/libunwind/src/EHHeaderParser.hpp
+++ b/lib/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;