PR 26481
* config/tc-pj.c (md_assemble): Don't loop past end of
opcode->arg array.
+2020-08-29 Alan Modra <amodra@gmail.com>
+
+ PR 26481
+ * config/tc-pj.c (md_assemble): Don't loop past end of
+ opcode->arg array.
+
2020-08-28 Alan Modra <amodra@gmail.com>
PR 26460
}
else
{
- int an;
+ unsigned int an;
output = frag_more (opcode->len);
output[idx++] = opcode->opcode;
if (opcode->opcode_next != -1)
output[idx++] = opcode->opcode_next;
- for (an = 0; opcode->arg[an]; an++)
+ for (an = 0; an < ARRAY_SIZE (opcode->arg) && opcode->arg[an]; an++)
{
expressionS arg;