diff options
author | Monty <monty@mariadb.org> | 2019-08-12 10:42:12 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2019-08-12 10:48:38 +0300 |
commit | 05619f6989590727a470c23475fc987f52b56988 (patch) | |
tree | 60429bcf8bd0e08550859f4fe5ab622948f23b20 /plugin | |
parent | 13f36fffeaecf316435fc497b0f3ae2a5d58d749 (diff) | |
download | mariadb-git-05619f6989590727a470c23475fc987f52b56988.tar.gz |
Fixes based on warnings from gcc/clang and valgrind
- Initialize variables that could be used uninitialized
- Added extra end space to DbugStringItemTypeValue to get rid of warnings
from c_ptr()
- Session_sysvars_tracker::update() accessed unitialized memory if called
with NULL value.
- get_schema_stat_record() accessed unitialized memory if HA_KEY_LONG_HASH
was used
- parse_vcol_defs() accessed random memory for tables without keys.
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/auth_pam/auth_pam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/auth_pam/auth_pam.c b/plugin/auth_pam/auth_pam.c index ec0096609ba..65d71a81080 100644 --- a/plugin/auth_pam/auth_pam.c +++ b/plugin/auth_pam/auth_pam.c @@ -40,7 +40,7 @@ static int pam_auth(MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *info) { int p_to_c[2], c_to_p[2]; /* Parent-to-child and child-to-parent pipes. */ pid_t proc_id; - int result= CR_ERROR, pkt_len; + int result= CR_ERROR, pkt_len= 0; unsigned char field, *pkt; PAM_DEBUG((stderr, "PAM: opening pipes.\n")); |