aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-08-25 16:56:07 +0930
committerAlan Modra <amodra@gmail.com>2020-08-25 23:07:10 +0930
commit1de153a16817c8b2807749911c39ed96a0698b88 (patch)
tree2fb24dd33255530f325804e1a04ad17ba457652f /gas/config
parenta93ba4c0cf1d6ffa46b493643460730265455e4c (diff)
downloadgdb-1de153a16817c8b2807749911c39ed96a0698b88.zip
gdb-1de153a16817c8b2807749911c39ed96a0698b88.tar.gz
gdb-1de153a16817c8b2807749911c39ed96a0698b88.tar.bz2
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 = "".
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-tic4x.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gas/config/tc-tic4x.c b/gas/config/tc-tic4x.c
index f1eb5bf..1889b47 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];