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.
This commit is contained in:
Monty 2019-08-12 10:42:12 +03:00
commit 05619f6989
8 changed files with 26 additions and 18 deletions

View file

@ -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"));