Skip to content

Commit aaca4ed

Browse files
felipenspweltling
authored andcommitted
- Fixed bug #66311 (Stack smashing protection kills PDO/ODBC queries) patch by: michael at orlitzky dot com
1 parent 85251ec commit aaca4ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/pdo_odbc/odbc_stmt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,8 @@ static int odbc_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
552552
struct pdo_column_data *col = &stmt->columns[colno];
553553
RETCODE rc;
554554
SWORD colnamelen;
555-
SQLULEN colsize;
556-
SQLLEN displaysize;
555+
SDWORD colsize;
556+
SQLLEN displaysize;
557557

558558
rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname,
559559
sizeof(S->cols[colno].colname)-1, &colnamelen,

0 commit comments

Comments
 (0)