doc/share/security/patches/EN-19:15/libunwind.patch
2019-08-06 17:31:19 +00:00

13 lines
504 B
Diff

--- contrib/llvm/projects/libunwind/src/EHHeaderParser.hpp.orig
+++ contrib/llvm/projects/libunwind/src/EHHeaderParser.hpp
@@ -68,7 +68,9 @@
ehHdrInfo.eh_frame_ptr =
addressSpace.getEncodedP(p, ehHdrEnd, eh_frame_ptr_enc, ehHdrStart);
ehHdrInfo.fde_count =
- addressSpace.getEncodedP(p, ehHdrEnd, fde_count_enc, ehHdrStart);
+ fde_count_enc == DW_EH_PE_omit
+ ? 0
+ : addressSpace.getEncodedP(p, ehHdrEnd, fde_count_enc, ehHdrStart);
ehHdrInfo.table = p;
}