authorgravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2023-06-02 10:11:46-04:00
committergravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2023-07-20 22:58:13-04:00
logadbc5bbdb317847d1446395d24cd92c0ffc7fc49
treec58c62fa90f82a943cf02a2a3c2964fc1fdff0b9
parent5781016c35c27a64b08c0701a92ad7c1a253a869

dwarf: fixup pointer cast


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/dwarf.zig+2-2
...@@ -1862,11 +1862,11 @@ pub const ExceptionFrameHeader = struct {...@@ -1862,11 +1862,11 @@ pub const ExceptionFrameHeader = struct {
1862 .data_rel_base = eh_frame_hdr_ptr,1862 .data_rel_base = eh_frame_hdr_ptr,
1863 }, builtin.cpu.arch.endian()) orelse return badDwarf();1863 }, builtin.cpu.arch.endian()) orelse return badDwarf();
18641864
1865 const fde_ptr = try readEhPointer(reader, self.table_enc, @sizeOf(usize), .{1865 const fde_ptr = math.cast(usize, try readEhPointer(reader, self.table_enc, @sizeOf(usize), .{
1866 .pc_rel_base = @ptrToInt(&self.entries[stream.pos]),1866 .pc_rel_base = @ptrToInt(&self.entries[stream.pos]),
1867 .follow_indirect = true,1867 .follow_indirect = true,
1868 .data_rel_base = eh_frame_hdr_ptr,1868 .data_rel_base = eh_frame_hdr_ptr,
1869 }, builtin.cpu.arch.endian()) orelse return badDwarf();1869 }, builtin.cpu.arch.endian()) orelse return badDwarf()) orelse return badDwarf();
18701870
1871 // TODO: Should this also do isValidMemory(fde_ptr) + 11 (worst case header size)?1871 // TODO: Should this also do isValidMemory(fde_ptr) + 11 (worst case header size)?
18721872