Permalink
Browse files

Fix #12376 - crash in: rasm2 -a arm -b 64 '0 ,0,0,0,0,0,0,'

  • Loading branch information...
radare committed Dec 3, 2018
1 parent a66d255 commit df167c7db545953bb7f71c72e98e7a3ca0c793bf
Showing with 4 additions and 0 deletions.
  1. +4 −0 libr/asm/arch/arm/armass64.c
@@ -737,6 +737,10 @@ static bool parseOperands(char* str, ArmOp *op) {
while (token[0] == ' ') {
token++;
}
if (operand >= MAX_OPERANDS) {
eprintf ("Too many operands\n");
return false;
}
op->operands[operand].type = ARM_NOTYPE;
op->operands[operand].reg_type = ARM_UNDEFINED;
op->operands[operand].shift = ARM_NO_SHIFT;

0 comments on commit df167c7

Please sign in to comment.