Skip to content

Commit

Permalink
Check for present detail before accessing it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Oct 12, 2023
1 parent 51b3d20 commit c8b2f1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/AArch64/AArch64Mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ void AArch64_printer(MCInst *MI, SStream *O, void * /* MCRegisterInfo* */ info)
MI->fillDetailOps = detail_is_set(MI);
MI->flat_insn->usesAliasDetails = map_use_alias_details(MI);
AArch64_LLVM_printInstruction(MI, O, info);
AArch64_get_detail(MI)->post_index = AArch64_check_post_index_am(MI, O);
if (detail_is_set(MI))
AArch64_get_detail(MI)->post_index = AArch64_check_post_index_am(MI, O);
AArch64_check_updates_flags(MI);
map_set_alias_id(MI, O, insn_alias_mnem_map, ARR_SIZE(insn_alias_mnem_map) - 1);
int syntax_opt = MI->csh->syntax;
Expand Down

0 comments on commit c8b2f1d

Please sign in to comment.