Fixed by letting X509_NAME_oneline() allocate the string. This ticket
is now resolved.
--
Richard Levitte
[EMAIL PROTECTED]
__
OpenSSL Project http://www.openssl.org
Development Mailing List
[EMAIL PROTECTED] wrote:
Thanks for the tip. Now, how do we get this fix into an official codebase?
I have a patch queued that fixes this.
Cheers,
Ben.
Yuval
-Original Message-
From: Harald Koch [mailto:[EMAIL PROTECTED]]
Sent: Mon, July 15, 2002 17:33
To: [EMAIL PROTECTED]
After further thought, this is a simpler solution:
diff -ur openssl-engine-0.9.6d/apps/apps.c
openssl-engine-0.9.6d-patch/apps/apps.c
--- openssl-engine-0.9.6d/apps/apps.cSun Sep 17 23:37:16 2000
+++ openssl-engine-0.9.6d-patch/apps/apps.cMon Jul 15 12:18:48 2002
@@ -757,22 +757,34 @@
After further thought, this is a simpler solution:
diff -ur openssl-engine-0.9.6d/apps/apps.c
openssl-engine-0.9.6d-patch/apps/apps.c
--- openssl-engine-0.9.6d/apps/apps.cSun Sep 17 23:37:16 2000
+++ openssl-engine-0.9.6d-patch/apps/apps.cMon Jul 15 12:18:48 2002
@@ -757,22 +757,34 @@
Another problem with my code: the buffer I allocated wasn't freed...
Thanks to Peter Sylvester for pointing this out. I also moved the
allocation of the buffer to where it's actually used.
Yuval
diff -ur openssl-engine-0.9.6d/apps/apps.c
openssl-engine-0.9.6d-patch/apps/apps.c
---
Another problem with my code: the buffer I allocated wasn't freed...
Thanks to Peter Sylvester for pointing this out. I also moved the
allocation of the buffer to where it's actually used.
Yuval
diff -ur openssl-engine-0.9.6d/apps/apps.c
openssl-engine-0.9.6d-patch/apps/apps.c
---
Another problem with my code: the buffer I allocated wasn't freed...
Thanks to Peter Sylvester for pointing this out. I also moved the
allocation of the buffer to where it's actually used.
Well, to be complete, the code should also test for the results
of alloc and realloc. On the other
Of all the gin joints in all the towns in all the world, Yuval Pemper
had to walk into mine and say:
Another problem with my code: the buffer I allocated wasn't freed...
Thanks to Peter Sylvester for pointing this out. I also moved the
allocation of the buffer to where it's actually used.
Thanks for the tip. Now, how do we get this fix into an official codebase?
Yuval
-Original Message-
From: Harald Koch [mailto:[EMAIL PROTECTED]]
Sent: Mon, July 15, 2002 17:33
To: [EMAIL PROTECTED]
Subject: Re: [openssl.org #147] [PATCH] The function print_name in
apps/apps.c truncates