[Pkg-php-commits] [php/debian-sid] Cherry-pick fix for bug #52843 (Segfault when optional parameters are not passed in to mssql_connect)

Ondřej Surý ondrej at sury.org
Wed Nov 17 09:48:09 UTC 2010


---
 debian/patches/bug52843.patch |   11 +++++++++++
 debian/patches/series         |    1 +
 2 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 debian/patches/bug52843.patch

diff --git a/debian/patches/bug52843.patch b/debian/patches/bug52843.patch
new file mode 100644
index 0000000..8df705e
--- /dev/null
+++ b/debian/patches/bug52843.patch
@@ -0,0 +1,11 @@
+--- a/ext/mssql/php_mssql.c
++++ b/ext/mssql/php_mssql.c
+@@ -571,7 +571,7 @@ PHP_MINFO_FUNCTION(mssql)
+ static void php_mssql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
+ {
+ 	char *host = NULL, *user = NULL, *passwd = NULL;
+-	int host_len, user_len, passwd_len;
++	int host_len = 0, user_len = 0, passwd_len = 0;
+ 	zend_bool new_link = 0;
+ 	char *hashed_details;
+ 	int hashed_details_length;
diff --git a/debian/patches/series b/debian/patches/series
index 8243b28..383095b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -63,3 +63,4 @@ bug52487.patch
 bug50481.patch
 fix_crash_in__php_mssql_get_column_content_without_type.patch
 bug52827.patch
+bug52843.patch
-- 
1.7.1





More information about the Pkg-php-commits mailing list