Bug#25471090: MYSQL USE AFTER FREE
fix another similar line followup for 7828ba0df488
This commit is contained in:
parent
eb057dce20
commit
5cfe52314e
@ -1636,7 +1636,7 @@ MYSQL_DATA *cli_read_rows(MYSQL *mysql,MYSQL_FIELD *mysql_fields,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
cur->data[field] = to;
|
cur->data[field] = to;
|
||||||
if (len > (ulong) (end_to - to))
|
if (to + len > end_to)
|
||||||
{
|
{
|
||||||
free_rows(result);
|
free_rows(result);
|
||||||
set_mysql_error(mysql, CR_MALFORMED_PACKET, unknown_sqlstate);
|
set_mysql_error(mysql, CR_MALFORMED_PACKET, unknown_sqlstate);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user