diff options
author | Alan Modra <amodra@gmail.com> | 2020-08-25 16:56:07 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-08-25 23:07:10 +0930 |
commit | 1de153a16817c8b2807749911c39ed96a0698b88 (patch) | |
tree | 2fb24dd33255530f325804e1a04ad17ba457652f /gas | |
parent | a93ba4c0cf1d6ffa46b493643460730265455e4c (diff) | |
download | gdb-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')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-tic4x.c | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index f7f701c..88eea23 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,11 @@ 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 * config/tc-cr16.c (get_b_cc): Return NULL early if op isn't two or three chars, and don't bother copying. 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]; |