Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
php5.3822
php-CVE-2015-8879.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php-CVE-2015-8879.patch of Package php5.3822
Index: php-5.5.14/ext/odbc/php_odbc.c =================================================================== --- php-5.5.14.orig/ext/odbc/php_odbc.c 2016-05-24 13:32:47.749479171 +0200 +++ php-5.5.14/ext/odbc/php_odbc.c 2016-05-24 13:36:32.317376536 +0200 @@ -981,6 +981,16 @@ int odbc_bindcols(odbc_result *result TS NULL, 0, NULL, &displaysize); displaysize = displaysize <= result->longreadlen ? displaysize : result->longreadlen; + +#if defined(ODBCVER) && (ODBCVER >= 0x0300) + /* Workaround for drivers that report NVARCHAR(MAX) columns as SQL_WVARCHAR with size 0 (bug #69975) */ + if (result->values[i].coltype == SQL_WVARCHAR && displaysize == 0) { + result->values[i].coltype = SQL_WLONGVARCHAR; + result->values[i].value = NULL; + break; + } +#endif + /* Workaround for Oracle ODBC Driver bug (#50162) when fetching TIMESTAMP column */ if (result->values[i].coltype == SQL_TIMESTAMP) { displaysize += 3;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor