summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-04-27 11:21:55 +0200
committerSergei Golubchik <serg@mariadb.org>2018-04-27 11:32:19 +0200
commit5cfe52314e29386e1867fad1b44eace2b9d0be7e (patch)
tree8f52c81e5b695b667577624cd565d9eb21c27371 /sql-common
parenteb057dce2027b673b7b140bae42963774027e0a5 (diff)
downloadmariadb-git-5cfe52314e29386e1867fad1b44eace2b9d0be7e.tar.gz
Bug#25471090: MYSQL USE AFTER FREE
fix another similar line followup for 7828ba0df488
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index bb7bdb1ff7d..9cb3311d2e1 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -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);