PR26500, ASAN: tic4x_inst_make tc-tic4x.c:1247
Alan Modra
amodra@gmail.com
Tue Aug 25 13:31:06 GMT 2020
PR 26500
* tc-tic4x.c (tic4x_inst_make): Don't die on terminating insn
with name = "".
diff --git a/gas/config/tc-tic4x.c b/gas/config/tc-tic4x.c
index f1eb5bfb41..1889b47128 100644
--- a/gas/config/tc-tic4x.c
+++ b/gas/config/tc-tic4x.c
@@ -1242,9 +1242,8 @@ tic4x_inst_make (const char *name, unsigned long opcode, const char *args)
insts[iindex].args = args;
iindex++;
- do
+ while (*name)
*names++ = *name++;
- while (*name);
*names++ = '\0';
return &insts[iindex - 1];
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list