Skip to content

Commit

Permalink
Fix test_single_MC
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Nov 20, 2023
1 parent f16616f commit 659a2ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions suite/cstest/src/capstone_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ void test_single_MC(csh *handle, int mc_mode, char *line)
char *p;

list_part = split(line, " = ", &size_part);
if (size_part <= 1) {
free_strs(list_part, size_part);
return;
}

offset_opcode = split(list_part[0], ": ", &size_offset_opcode);
if (size_offset_opcode > 1) {
offset = (unsigned int)strtol(offset_opcode[0], NULL, 16);
Expand Down

0 comments on commit 659a2ec

Please sign in to comment.