From 1de153a16817c8b2807749911c39ed96a0698b88 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 25 Aug 2020 16:56:07 +0930 Subject: [PATCH] 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 = "". --- gas/ChangeLog | 6 ++++++ gas/config/tc-tic4x.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) 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]; -- 2.30.2