Bug #1579 | Uninitialized data in host access control | ||
---|---|---|---|
Submitted: | 16 Oct 2003 14:29 | Modified: | 11 Dec 2003 6:49 |
Reporter: | Curtis Smith | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.0.15a | OS: | Solaris (Solaris 8) |
Assigned to: | Michael Widenius | CPU Architecture: | Any |
[16 Oct 2003 14:29]
Curtis Smith
[11 Dec 2003 5:31]
MySQL Verification Team
This works fine if host column in db table is empty string or blank. As documented in our manual, it is not supposed to be NULL.
[11 Dec 2003 6:49]
Michael Widenius
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html Additional info: I applied the following patch instead of the suggested one as this is shorter and more efficient ===== sql_acl.cc 1.119 vs edited ===== 1205c1205 < if (hostname && --- > if (!hostname || The fix will be in 4.0.17 (The reson for fixing this is that the update_host_name() function can take NULL pointers and should thus work correctly with these even if MySQL doesn't normally have hostnames with NULL) Regards, Monty