summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_ps_codec.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2013-07-08 20:23:32 +0200
committerAndrey Hristov <andrey@php.net>2013-07-08 20:23:32 +0200
commit9fc38183b707341b6eddb8c196d0ea2b7c13d6a9 (patch)
tree1934a4b6f2fa2f7eadfe21bbb9f7f044954c709f /ext/mysqlnd/mysqlnd_ps_codec.c
parentb34e8d2e3e892d8844cf9af7c0ce4bf3ed698fc6 (diff)
downloadphp-git-9fc38183b707341b6eddb8c196d0ea2b7c13d6a9.tar.gz
Fixed segfault in mysqlnd when doing long prepare
Diffstat (limited to 'ext/mysqlnd/mysqlnd_ps_codec.c')
-rw-r--r--ext/mysqlnd/mysqlnd_ps_codec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_ps_codec.c b/ext/mysqlnd/mysqlnd_ps_codec.c
index 5ead1b0bcc..cee0be181e 100644
--- a/ext/mysqlnd/mysqlnd_ps_codec.c
+++ b/ext/mysqlnd/mysqlnd_ps_codec.c
@@ -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