[openssl] Cannot use malloc with OPENSSL_free.

Tomáš Mráz tmraz at fedoraproject.org
Wed Jun 11 13:31:19 UTC 2014


commit 9c4f375672e958e5b93aeef57b1b135dc230a721
Author: Tomas Mraz <tmraz at fedoraproject.org>
Date:   Wed Jun 11 15:30:49 2014 +0200

    Cannot use malloc with OPENSSL_free.

 openssl-1.0.1h-system-cipherlist.patch |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/openssl-1.0.1h-system-cipherlist.patch b/openssl-1.0.1h-system-cipherlist.patch
index 0ac422c..bf55b3d 100644
--- a/openssl-1.0.1h-system-cipherlist.patch
+++ b/openssl-1.0.1h-system-cipherlist.patch
@@ -120,7 +120,7 @@ diff -up openssl-1.0.1h/ssl/ssl_ciph.c.system openssl-1.0.1h/ssl/ssl_ciph.c
 +		buf[len] = 0;
 +		}
 +
-+	new_rules = malloc(len + slen + 1);
++	new_rules = OPENSSL_malloc(len + slen + 1);
 +	if (new_rules == 0)
 +		return NULL;
 +
@@ -153,7 +153,7 @@ diff -up openssl-1.0.1h/ssl/ssl_ciph.c.system openssl-1.0.1h/ssl/ssl_ciph.c
 +
 +	if (rule_str != NULL && strncmp(rule_str, "PROFILE=SYSTEM", 14) == 0)
 +		{
-+		char* p = rule_str + 14;
++		char *p = rule_str + 14;
 +
 +		new_rules = load_system_str(p);
 +		rule_str = new_rules;


More information about the scm-commits mailing list