Browse Source

bug #537: remove memcopy with overlapping strings

Bug reported by Ronan BARZIC
pre-master-46
Holger Vogt 5 years ago
parent
commit
98eb5bf475
  1. 7
      src/frontend/numparam/xpressn.c

7
src/frontend/numparam/xpressn.c

@ -1424,13 +1424,10 @@ nupa_subcktcall(dico_t *dico, const char *s, const char *x,
const char *i2 = strstr(ds_get_buf(&tstr), "params:");
if (i2) {
const char *optr, *jptr;
pscopy(&tstr, i2 + 7, NULL);
const char* optr, * jptr;
/* search identifier to the left of '=' assignments */
for (optr = ds_get_buf(&tstr);
for (optr = i2 + 7;
(jptr = strchr(optr, '=')) != NULL;
optr = jptr + 1)
{

Loading…
Cancel
Save