Skip to content

Commit

Permalink
Fixed segfault in mysqlnd when doing long prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
faizshukri committed Jul 8, 2013
1 parent b34e8d2 commit 9fc3818
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NEWS
Expand Up @@ -21,6 +21,9 @@ PHP NEWS

- Intl:
. Fixed bug #62759: Buggy grapheme_substr() on edge case. (Stas)

- mysqlnd:
. Fixed segfault in mysqlnd when doing long prepare. (Andrey)

- ODBC:
. Fixed bug #61387 (NULL valued anonymous column causes segfault in
Expand Down
50 changes: 50 additions & 0 deletions ext/mysqli/tests/mysqli_stmt_big_prepare.phpt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ext/mysqlnd/mysqlnd_ps_codec.c
Expand Up @@ -626,6 +626,7 @@ mysqlnd_stmt_execute_store_params(MYSQLND_STMT * s, zend_uchar **buf, zend_uchar
*p += null_count;
}

left = (*buf_len - (*p - *buf));
/* 1. Store type information */
/*
check if need to send the types even if stmt->send_types_to_server is 0. This is because
Expand Down

1 comment on commit 9fc3818

@csdougliss
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this make into the 5.5.x branch?

Please sign in to comment.