projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
535aef9
)
When the pointer 'from' changes, it's stored length needs to change as
author
Richard Levitte
<levitte@openssl.org>
Thu, 6 May 2004 09:31:31 +0000
(09:31 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 6 May 2004 09:31:31 +0000
(09:31 +0000)
well.
Notified by Frank Kardel <kardel@acm.org> in PR 879.
crypto/conf/conf_def.c
patch
|
blob
|
history
diff --git
a/crypto/conf/conf_def.c
b/crypto/conf/conf_def.c
index 2e9f52f1fd503560abfec572ce7ed6016ce90a17..b5a876ae68a5a7959858ac877c1b5651396f1536 100644
(file)
--- a/
crypto/conf/conf_def.c
+++ b/
crypto/conf/conf_def.c
@@
-632,6
+632,11
@@
static int str_copy(CONF *conf, char *section, char **pto, char *from)
BUF_MEM_grow_clean(buf,(strlen(p)+len-(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