Skip to content

Commit f1e2edf

Browse files
committed
fix for bug #63530 mysqlnd_stmt::bind_one_parameter uses wrong alloc for stmt->param_bind
1 parent bdaafe3 commit f1e2edf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ PHP NEWS
44
- PCRE:
55
. Merged PCRE 8.32). (Anatol)
66

7+
- mysqlnd
8+
. Fixed bug #63530 (mysqlnd_stmt::bind_one_parameter crashes, uses wrong alloc
9+
for stmt->param_bind). (Andrey)
10+
711

812
28 Feb 2013, PHP 5.3.23RC1
913

ext/mysqlnd/mysqlnd_ps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ MYSQLND_METHOD(mysqlnd_stmt, bind_one_parameter)(MYSQLND_STMT * const s, unsigne
14851485

14861486
if (stmt->param_count) {
14871487
if (!stmt->param_bind) {
1488-
stmt->param_bind = mnd_ecalloc(stmt->param_count, sizeof(MYSQLND_PARAM_BIND));
1488+
stmt->param_bind = mnd_pecalloc(stmt->param_count, sizeof(MYSQLND_PARAM_BIND), stmt->persistent);
14891489
if (!stmt->param_bind) {
14901490
DBG_RETURN(FAIL);
14911491
}

0 commit comments

Comments
 (0)