pajoye Mon Aug 6 19:11:20 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/openssl openssl.c
Log:
- #42222, truncate the _default to the buffer size (was 200 since day #1, we
don't need dynamic alloc here)
http://cvs.php.net/viewvc.cgi/php-src/ext/openssl/openssl.c?r1=1.98.2.5.2.38&r2=1.98.2.5.2.39&diff_format=u
Index: php-src/ext/openssl/openssl.c
diff -u php-src/ext/openssl/openssl.c:1.98.2.5.2.38
php-src/ext/openssl/openssl.c:1.98.2.5.2.39
--- php-src/ext/openssl/openssl.c:1.98.2.5.2.38 Wed Jul 11 12:18:14 2007
+++ php-src/ext/openssl/openssl.c Mon Aug 6 19:11:20 2007
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: openssl.c,v 1.98.2.5.2.38 2007/07/11 12:18:14 dmitry Exp $ */
+/* $Id: openssl.c,v 1.98.2.5.2.39 2007/08/06 19:11:20 pajoye Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1739,7 +1739,9 @@
if (strcmp("_default", type + len) != 0) {
continue;
}
-
+ if (len > 200) {
+ len = 200;
+ }
memcpy(buffer, type, len);
buffer[len] = '\0';
type = buffer;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php