* read.c (do_repeat_with_expander): Use memmove instead of strcpy
on unterminated string buffer.
+2018-08-21 Andreas Schwab <schwab@suse.de>
+
+ * read.c (do_repeat_with_expander): Use memmove instead of strcpy
+ on unterminated string buffer.
+
2018-08-21 Alan Modra <amodra@gmail.com>
* config/tc-ppc.c (md_assemble): Delay counting of optional
sub = strstr (processed.ptr, expander);
len = sprintf (sub, "%lu", (unsigned long) count);
gas_assert (len < 8);
- strcpy (sub + len, sub + 8);
+ memmove (sub + len, sub + 8,
+ processed.ptr + processed.len - (sub + 8));
processed.len -= (8 - len);
sb_add_sb (& many, & processed);
sb_kill (& processed);