Closed bjorn3 closed 5 months ago
Done and checked that the test catches this bug:
---- write::cfi::tests::test_frame_table stdout ----
thread 'write::cfi::tests::test_frame_table' panicked at src/write/cfi.rs:945:22:
called `Result::unwrap()` on an `Err` value: Read(UnexpectedEof(ReaderOffsetId(139971507795137)))
Without this an LSDA encoded as
DW_EH_PE_pcrel | DW_EH_PE_sdata4
would cause the.eh_frame
section to be corrupt. I found this issue while implementing unwinding support for cg_clif.