[Pkg-php-commits] [php/debian-lenny] Fix a heap overflow in the odbc extension (Closes: #565387)

Raphael Geissert geissert at debian.org
Mon Feb 22 22:27:13 UTC 2010


---
 debian/patches/odbc-64bits-len.patch |   15 +++++++++++++++
 debian/patches/series                |    1 +
 2 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 debian/patches/odbc-64bits-len.patch

diff --git a/debian/patches/odbc-64bits-len.patch b/debian/patches/odbc-64bits-len.patch
new file mode 100644
index 0000000..c148e6e
--- /dev/null
+++ b/debian/patches/odbc-64bits-len.patch
@@ -0,0 +1,15 @@
+Index: php/ext/odbc/php_odbc_includes.h
+===================================================================
+--- php.orig/ext/odbc/php_odbc_includes.h
++++ php/ext/odbc/php_odbc_includes.h
+@@ -230,8 +230,8 @@ typedef struct odbc_connection {
+ typedef struct odbc_result_value {
+ 	char name[32];
+ 	char *value;
+-	SDWORD vallen;
+-	SDWORD coltype;
++	SQLLEN vallen;
++	SQLLEN coltype;
+ } odbc_result_value;
+ 
+ typedef struct odbc_result {
diff --git a/debian/patches/series b/debian/patches/series
index 0076d65..2880253 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -62,3 +62,4 @@ CVE-2009-3291.patch
 max_file_uploads.patch
 curl_read-overflow.patch
 filter-valid-email-characters.patch
+odbc-64bits-len.patch
-- 
1.6.3.3





More information about the Pkg-php-commits mailing list