Skip to content

Commit

Permalink
Bug#25471090: MYSQL USE AFTER FREE
Browse files Browse the repository at this point in the history
fix another similar line

followup for 7828ba0
  • Loading branch information
vuvova committed Apr 27, 2018
1 parent eb057dc commit 5cfe523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql-common/client.c
Expand Up @@ -1636,7 +1636,7 @@ MYSQL_DATA *cli_read_rows(MYSQL *mysql,MYSQL_FIELD *mysql_fields,
else
{
cur->data[field] = to;
if (len > (ulong) (end_to - to))
if (to + len > end_to)
{
free_rows(result);
set_mysql_error(mysql, CR_MALFORMED_PACKET, unknown_sqlstate);
Expand Down

0 comments on commit 5cfe523

Please sign in to comment.