mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-07 13:51:16 +00:00
Don't crash when parsing operations without operands
This commit is contained in:
parent
e393167227
commit
67d5c28282
@ -932,7 +932,7 @@ static int assemble(RAsm *a, RAsmOp *ao, const char *str) {
|
||||
|
||||
// Parse operands
|
||||
int op_ind = 0;
|
||||
x86newTokenType ttype = TT_SPECIAL;
|
||||
x86newTokenType ttype = getToken(str, &pos, &nextpos);
|
||||
while (op_ind < 3 && ttype != TT_EOF) {
|
||||
// Read operand
|
||||
pos += parseOperand(str + pos, &operands[op_ind++]);
|
||||
|
Loading…
Reference in New Issue
Block a user