PR26500, ASAN: tic4x_inst_make tc-tic4x.c:1247

PR 26500
	* tc-tic4x.c (tic4x_inst_make): Don't die on terminating insn
	with name = "".
This commit is contained in:
Alan Modra
2020-08-25 16:56:07 +09:30
parent a93ba4c0cf
commit 1de153a168
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2020-08-25 Alan Modra <amodra@gmail.com>
PR 26500
* tc-tic4x.c (tic4x_inst_make): Don't die on terminating insn
with name = "".
2020-08-25 Alan Modra <amodra@gmail.com>
PR 26441

View File

@@ -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];