Fixes bug #73800
news entry for PR #2249
- Mysqlnd:
. Optimized handling of BIT fields - less memory copies and lower memory
usage. (Andrey)
+ . Fixed bug #73800 (sporadic segfault with MYSQLI_OPT_INT_AND_FLOAT_NATIVE).
+ (vanviegen)
- Opcache:
. Fixed bug #73789 (Strange behavior of class constants in switch/case block).
zero-length byte, don't read the body, there is no such.
*/
- *data_size = 0;
+ /*
+ We're allocating an extra byte, as php_mysqlnd_rowp_read_text_protocol_aux
+ needs to be able to append a terminating \0 for atoi/atof.
+ */
+ *data_size = 1;
+
while (1) {
if (FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info)) {
ret = FAIL;
pool->free_chunk(pool, *buffer);
*buffer = NULL;
}
+ *data_size--;
DBG_RETURN(ret);
}
/* }}} */