diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-09-17 19:38:42 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-09-17 19:38:42 +0200 |
commit | c338772a59c5cdfb4ab9032e482dd1b25c85d3c4 (patch) | |
tree | 5a26bf9720ee0c147cc608aa54476ad9ca278dc2 /storage/spider/spd_include.h | |
parent | b04748c8cd8604039d4e5e97bf19013b03e8283b (diff) | |
download | mariadb-git-c338772a59c5cdfb4ab9032e482dd1b25c85d3c4.tar.gz |
fixes for valgrind failures
sql/item.cc:
don't forget to adjust the length of the string when removing leading spaces
sql/sql_acl.cc:
when updating the hostname of the ACL_USER, update the hostname_length too
sql/sql_parse.cc:
first compare the username string, then test the host pointer
(host pointer is undefined when the username string is one of the hard-coded values
set by the parser). This is not a bug, old code is perfectly safe as the undefined
host pointer is never dereferenced, but let's keep valgrind happy.
Diffstat (limited to 'storage/spider/spd_include.h')
0 files changed, 0 insertions, 0 deletions