Patch Extra_allocation_for_transforming_character_code for ODBC related Bug #71444
Patch version 2016-01-25 01:45 UTC
Return to Bug #71444 |
Download this patch
Patch Revisions:
Developer: ta_nakagawa@ysco.net
--- ext/odbc/php_odbc.c.orig 2016-01-06 07:14:48.000000000 +0900
+++ ext/odbc/php_odbc.c 2016-01-21 22:16:59.767514900 +0900
@@ -1020,10 +1020,9 @@
displaysize += 3;
}
- if (charextraalloc) {
- /* Since we don't know the exact # of bytes, allocate extra */
- displaysize *= 4;
- }
+ /* Since we don't know the exact # of bytes, allocate extra */
+ displaysize *= 4;
+
result->values[i].value = (char *)emalloc(displaysize + 1);
rc = SQLBindCol(result->stmt, (SQLUSMALLINT)(i+1), SQL_C_CHAR, result->values[i].value,
displaysize + 1, &result->values[i].vallen);
|