We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef516aa commit 21a4f01Copy full SHA for 21a4f01
library/std/src/sys/personality/dwarf/eh.rs
@@ -83,8 +83,11 @@ pub unsafe fn find_eh_action(lsda: *const u8, context: &EHContext<'_>) -> Result
83
let call_site_encoding = unsafe {
84
let ttype_encoding = reader.read::<u8>();
85
if ttype_encoding != DW_EH_PE_omit {
86
- // Rust doesn't analyze exception types, so we don't care about the type table
87
- reader.read_uleb128();
+ // discard the offset to the type table, we aren't interested
+ if ttype_encoding & 0x0F == DW_EH_PE_uleb128 {
88
+ rtabort!("ttype encoding assumed to not vary based on architecture.");
89
+ }
90
+ let _ = reader.read_uleb128();
91
}
92
93
reader.read::<u8>()
0 commit comments