From: Dmitry Stogov Date: Thu, 30 Nov 2017 10:54:24 +0000 (+0300) Subject: Fixed incorrect buffer reallocation X-Git-Tag: php-7.3.0alpha1~910 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7067f7ccb40010275c7020949753b412025e3024;p=php Fixed incorrect buffer reallocation --- diff --git a/ext/mysqlnd/mysqlnd_result.c b/ext/mysqlnd/mysqlnd_result.c index 3e97e2497b..61bfa7542c 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) {