From: Alan Modra Date: Tue, 25 Aug 2020 07:26:07 +0000 (+0930) Subject: PR26500, ASAN: tic4x_inst_make tc-tic4x.c:1247 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1de153a16817c8b2807749911c39ed96a0698b88;p=binutils-gdb.git 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 = "". --- diff --git a/gas/ChangeLog b/gas/ChangeLog index f7f701c6386..88eea23748c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2020-08-25 Alan Modra + + PR 26500 + * tc-tic4x.c (tic4x_inst_make): Don't die on terminating insn + with name = "". + 2020-08-25 Alan Modra PR 26441 diff --git a/gas/config/tc-tic4x.c b/gas/config/tc-tic4x.c index f1eb5bfb41e..1889b471282 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];