Skip to content

Commit ed0a694

Browse files
committed
[libunwind] fix dynamic .eh_frame registration
1 parent 8e8bbbd commit ed0a694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libunwind/src/libunwind.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ void __unw_add_dynamic_eh_frame_section(unw_word_t eh_frame_start) {
324324
CFI_Parser<LocalAddressSpace>::CIE_Info cieInfo;
325325
CFI_Parser<LocalAddressSpace>::FDE_Info fdeInfo;
326326
auto p = (LocalAddressSpace::pint_t)eh_frame_start;
327-
while (true) {
327+
while (LocalAddressSpace::sThisAddressSpace.get32(p)) {
328328
if (CFI_Parser<LocalAddressSpace>::decodeFDE(
329329
LocalAddressSpace::sThisAddressSpace, p, &fdeInfo, &cieInfo,
330330
true) == NULL) {

0 commit comments

Comments
 (0)