Patch patch-blob-uninitialized-odbc_stmt.c for PDO ODBC Bug #42765
Patch version 2016-09-21 15:26 UTC
Return to Bug #42765 |
Download this patch
Patch Revisions:
Developer: amistry@am-productions.biz
--- odbc_stmt.c.orig 2016-09-21 10:57:45.052396000 -0400
+++ odbc_stmt.c 2016-09-21 11:05:02.584261000 -0400
@@ -551,8 +551,8 @@
struct pdo_column_data *col = &stmt->columns[colno];
RETCODE rc;
SWORD colnamelen;
- SQLULEN colsize;
- SQLLEN displaysize;
+ SQLLEN colsize = 0;
+ SQLLEN displaysize = 0;
rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname,
sizeof(S->cols[colno].colname)-1, &colnamelen,
|