com php-src: Fixed incorrect buffer reallocation: ext/mysqlnd/m ysqlnd_result.c
| From: | Dmitry Stogov | Date: | Thu, 30 Nov 2017 10:54:24 +0000 |
| Subject: | com php-src: Fixed incorrect buffer reallocation: ext/mysqlnd/m ysqlnd_result.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100447@lists.php.net to get a copy of this message | ||
Commit: 7067f7ccb40010275c7020949753b412025e3024
Author: Dmitry Stogov <dmitry@zend.com> Thu, 30 Nov 2017 13:54:24 +0300
Parents: a5014d7c58e66f2270c86b573ac9fabd40559de9
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7067f7ccb40010275c7020949753b412025e3024
Log:
Fixed incorrect buffer reallocation
Changed paths:
M ext/mysqlnd/mysqlnd_result.c
Diff:
diff --git a/ext/mysqlnd/mysqlnd_result.c b/ext/mysqlnd/mysqlnd_result.c
index 3e97e24..61bfa75 100644
--- a/ext/mysqlnd/mysqlnd_result.c
+++ b/ext/mysqlnd/mysqlnd_result.c
@@ -1271,7 +1271,6 @@ MYSQLND_METHOD(mysqlnd_res, store_result_fetch_data)(MYSQLND_CONN_DATA * const
c
while (FAIL != (ret = PACKET_READ(conn, &row_packet)) && !row_packet.eof) {
if (!free_rows) {
MYSQLND_ROW_BUFFER * new_row_buffers;
- total_allocated_rows += set->row_count;
if (total_allocated_rows < 1024) {
if (total_allocated_rows == 0) {