mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
When the pointer 'from' changes, it's stored length needs to change as
well. Notified by Frank Kardel <kardel@acm.org> in PR 879.
This commit is contained in:
parent
ca982e4870
commit
430d7afd80
@ -632,6 +632,11 @@ static int str_copy(CONF *conf, char *section, char **pto, char *from)
|
||||
BUF_MEM_grow_clean(buf,(strlen(p)+buf->length-(e-from)));
|
||||
while (*p)
|
||||
buf->data[to++]= *(p++);
|
||||
|
||||
/* Since we change the pointer 'from', we also have
|
||||
to change the perceived length of the string it
|
||||
points at. /RL */
|
||||
len -= e-from;
|
||||
from=e;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user