bug #537: remove memcopy with overlapping strings
Bug reported by Ronan BARZIC
This commit is contained in:
parent
b84cd60295
commit
d252d66984
|
|
@ -1424,13 +1424,10 @@ nupa_subcktcall(dico_t *dico, const char *s, const char *x,
|
||||||
const char *i2 = strstr(ds_get_buf(&tstr), "params:");
|
const char *i2 = strstr(ds_get_buf(&tstr), "params:");
|
||||||
|
|
||||||
if (i2) {
|
if (i2) {
|
||||||
const char *optr, *jptr;
|
const char* optr, * jptr;
|
||||||
|
|
||||||
pscopy(&tstr, i2 + 7, NULL);
|
|
||||||
|
|
||||||
/* search identifier to the left of '=' assignments */
|
/* search identifier to the left of '=' assignments */
|
||||||
|
for (optr = i2 + 7;
|
||||||
for (optr = ds_get_buf(&tstr);
|
|
||||||
(jptr = strchr(optr, '=')) != NULL;
|
(jptr = strchr(optr, '=')) != NULL;
|
||||||
optr = jptr + 1)
|
optr = jptr + 1)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue