| ... | @@ -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(); |
| 1864 | | 1864 | |
| 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(); |
| 1870 | | 1870 | |
| 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)? |
| 1872 | | 1872 | |