Skip to content

Commit

Permalink
Bug fix: Correctly distinguish compact vs generic personality.
Browse files Browse the repository at this point in the history
  • Loading branch information
zyma98 committed Aug 29, 2024
1 parent 711d973 commit a725174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unwind/unw_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ impl<'a> ExTabEntry<'a> {
let raw_pers = extab[entry_offset + 3];

// If the most significant bit is set, it is the compact model.
if (raw_pers & 0xf0) == 0xf0 {
if (raw_pers & 0x80) == 0x80 {
// Personality selector. Currently only 0, 1, 2 are defined. Others
// are reserved.
let pers_sel = raw_pers & 0x0f;
Expand Down

0 comments on commit a725174

Please sign in to comment.