summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2020-11-01 14:26:15 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2020-11-01 14:26:15 +0100
commit8e1e2856f2523c225a81840059e93fa9f61fbacf (patch)
treef1c708faf5aaeb27f255531d8c0f9dac32833b5b /libmysqld
parentb0ff791618d97487fb7515d3f785b37f46eba132 (diff)
parent80c951ce2875aac521b82323b5b6ebf638593445 (diff)
downloadmariadb-git-8e1e2856f2523c225a81840059e93fa9f61fbacf.tar.gz
Merge branch '10.4' into 10.5
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 3930e14829d..9cc6520faf5 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -333,7 +333,7 @@ static my_bool emb_read_query_result(MYSQL *mysql)
static int emb_stmt_execute(MYSQL_STMT *stmt)
{
DBUG_ENTER("emb_stmt_execute");
- uchar header[5];
+ uchar header[9];
THD *thd;
my_bool res;
@@ -345,6 +345,7 @@ static int emb_stmt_execute(MYSQL_STMT *stmt)
int4store(header, stmt->stmt_id);
header[4]= (uchar) stmt->flags;
+ header[5]= header[6]= header[7]= header[8]= 0; // safety
thd= (THD*)stmt->mysql->thd;
thd->client_param_count= stmt->param_count;
thd->client_params= stmt->params;