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:
46956f0
)
String not properly NUL-terminated when no X509_NAME is given.
author
Richard Levitte
<levitte@openssl.org>
Wed, 21 May 2003 14:44:59 +0000
(14:44 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Wed, 21 May 2003 14:44:59 +0000
(14:44 +0000)
PR: 618
crypto/x509/x509_obj.c
patch
|
blob
|
history
diff --git
a/crypto/x509/x509_obj.c
b/crypto/x509/x509_obj.c
index f0271fdfa148d3d3ba25741ba262512bb59d53a3..1e718f76eb2dd0b37582e22110f7b002db2512d9 100644
(file)
--- a/
crypto/x509/x509_obj.c
+++ b/
crypto/x509/x509_obj.c
@@
-94,6
+94,7
@@
int i;
OPENSSL_free(b);
}
strncpy(buf,"NO X509_NAME",len);
+ buf[len-1]='\0';
return buf;
}