ubsan: crx: index 5 out of bounds for type 'operand_desc const[5]'
[deliverable/binutils-gdb.git] / opcodes / crx-dis.c
index 38347486169f107d74ffab7db86ed3dc176b9ce6..e44fca111145ca0b0781b933109a1685bef50f80 100644 (file)
@@ -105,7 +105,7 @@ get_number_of_operands (void)
 {
   int i;
 
-  for (i = 0; instruction->operands[i].op_type && i < MAX_OPERANDS; i++)
+  for (i = 0; i < MAX_OPERANDS && instruction->operands[i].op_type; i++)
     ;
 
   return i;
This page took 0.026659 seconds and 4 git commands to generate.