diff options
author | unknown <jimw@mysql.com> | 2005-06-20 10:21:35 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-06-20 10:21:35 -0700 |
commit | 9e78db81b04cbe271c01a384951ef2f3845027c3 (patch) | |
tree | a4abbba60a9ce634a6c87e0ebbebf7d2abb41134 /mysql-test/t/grant.test | |
parent | 79444fa5355609f51061f03229c7b9d18a7fd5e6 (diff) | |
download | mariadb-git-9e78db81b04cbe271c01a384951ef2f3845027c3.tar.gz |
Fix crash when an entry was added to the mysql.tables_priv
table with an empty hostname. (Bug #11330)
mysql-test/r/grant.result:
Update results
mysql-test/t/grant.test:
Add new regression test
sql/sql_acl.cc:
Don't call strlen() on a NULL pointer.
Diffstat (limited to 'mysql-test/t/grant.test')
-rw-r--r-- | mysql-test/t/grant.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/grant.test b/mysql-test/t/grant.test index 1c8fbe0ff0d..d80ef638e79 100644 --- a/mysql-test/t/grant.test +++ b/mysql-test/t/grant.test @@ -392,3 +392,11 @@ revoke all privileges on mysqltest.t1 from mysqltest_1@localhost; delete from mysql.user where user=_binary'mysqltest_1'; drop database mysqltest; +# +# Bug #11330: Entry in tables_priv with host = '' causes crash +# +connection default; +use mysql; +insert into tables_priv values ('','mysqltest_1','test_table','test_grantor','',CURRENT_TIMESTAMP,'Select','Select'); +flush privileges; +delete from tables_priv where host = '' and user = 'mysqltest_1'; |