Skip to content

Commit

Permalink
Fix off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed May 16, 2023
1 parent 39e7a3b commit d5b5d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macho/output-chunks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2184,7 +2184,7 @@ void CieRecord<E>::parse(Context<E> &ctx) {
if (*data != (DW_EH_PE_pcrel | DW_EH_PE_indirect | DW_EH_PE_sdata4))
Fatal(ctx) << *file << ": __eh_frame: unknown personality encoding: 0x"
<< std::hex << (u32)*data;
data += 4;
data += 5;
break;
case 'R':
if ((*data & 0xf) != DW_EH_PE_absptr || !(*data & DW_EH_PE_pcrel))
Expand Down

0 comments on commit d5b5d4c

Please sign in to comment.