pajoye          Mon Aug  6 19:13:05 2007 UTC

  Modified files:              
    /php-src/ext/openssl        openssl.c 
  Log:
  - MFB: #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.146&r2=1.147&diff_format=u
Index: php-src/ext/openssl/openssl.c
diff -u php-src/ext/openssl/openssl.c:1.146 php-src/ext/openssl/openssl.c:1.147
--- php-src/ext/openssl/openssl.c:1.146 Mon Aug  6 08:43:43 2007
+++ php-src/ext/openssl/openssl.c       Mon Aug  6 19:13:05 2007
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: openssl.c,v 1.146 2007/08/06 08:43:43 dmitry Exp $ */
+/* $Id: openssl.c,v 1.147 2007/08/06 19:13:05 pajoye Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1814,7 +1814,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

Reply via email to