summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-01-17 15:08:11 +0100
committerSergei Golubchik <serg@mariadb.org>2020-01-18 00:05:16 +0100
commit4d1c1b23e1373bbd4e72f524e855f1db076d2c73 (patch)
treea8bd7ad84d5e8d200136e30861148bb0c17fc162 /sql-common
parent49b9ce15ef1e27ce27b6c173ec8f82dcdffba956 (diff)
downloadmariadb-git-4d1c1b23e1373bbd4e72f524e855f1db076d2c73.tar.gz
Bug#29630767 - USE OF UNINITIALIZED VALUE IN LIBMYSQL (CLIENT.CC FUNCTION RUN_PLUGIN_AUTH)mariadb-5.5.67
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index f535b5119b7..c7fb70fbeef 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -3538,7 +3538,10 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
scramble_data_len= pkt_scramble_len;
scramble_plugin= scramble_data + scramble_data_len;
if (scramble_data + scramble_data_len > pkt_end)
- scramble_data_len= pkt_end - scramble_data;
+ {
+ set_mysql_error(mysql, CR_MALFORMED_PACKET, unknown_sqlstate);
+ goto error;
+ }
}
else
{