Bug #68576 MySQL 5.6 crashes when mysql.user is in-compatible
| Submitted: | 5 Mar 2013 17:19 | Modified: | 6 Mar 2013 8:33 |
|---|---|---|---|
| Reporter: | Venu Anuganti | Email Updates: | |
| Status: | Duplicate | Impact on me: | |
| Category: | MySQL Server: DDL | Severity: | S1 (Critical) |
| Version: | 5.6.10 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | 5.6, MySql Crash, mysql_upgrade | ||
[5 Mar 2013 17:19]
Venu Anuganti
[5 Mar 2013 17:34]
Shane Bester
Hi Venu, this is a duplicate of a known bug #68385
[6 Mar 2013 8:33]
Venu Anuganti
Shane, here is the fix/patch; as the field enum starts at 0 and table->s->fields starts at 1 as it has real fields count, you should skip the equality check, rather ">" should be good enough, instead of ">="
venu@ ~/work/mysql-5.6/sql 00:31:06# bzr diff
=== modified file 'sql/sql_acl.cc'
--- sql/sql_acl.cc 2013-01-15 15:37:35 +0000
+++ sql/sql_acl.cc 2013-03-06 07:52:50 +0000
@@ -3166,7 +3166,7 @@
}
/* if we have a password supplied we update the expiration field */
- if (table->s->fields >= MYSQL_USER_FIELD_PASSWORD_EXPIRED &&
+ if (table->s->fields > MYSQL_USER_FIELD_PASSWORD_EXPIRED &&
password_len > 0)
table->field[MYSQL_USER_FIELD_PASSWORD_EXPIRED]->store("N", 1,
system_charset_info);
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.052 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.