mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
dwarf: fix logic error in eh_frame_hdry binary search
This commit is contained in:
parent
6a5e2b713f
commit
395ab474eb
@ -1886,10 +1886,13 @@ pub const ExceptionFrameHeader = struct {
|
||||
.data_rel_base = eh_frame_hdr_ptr,
|
||||
}, builtin.cpu.arch.endian()) orelse return badDwarf();
|
||||
|
||||
if (pc >= pc_begin) left = mid;
|
||||
if (pc == pc_begin) break;
|
||||
|
||||
len /= 2;
|
||||
if (pc < pc_begin) {
|
||||
len /= 2;
|
||||
} else {
|
||||
left = mid;
|
||||
if (pc == pc_begin) break;
|
||||
len -= len / 2;
|
||||
}
|
||||
}
|
||||
|
||||
try stream.seekTo(left * entry_size);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user