Commit 3f88b8e
committed
Bug #19388163: PASSWORD VALIDATION PLUGIN CRASH WITH USER VARIABLE + DICTIONARY LOOKUP
The mysql_string_to_lowercase() was allocating strings for single byte csets only if the string supplied to it
was not dynamically allocated.
But it was freeing it unconditionally via mysql_string_free().
This function is called by the password validator when verifying against a dictionary file.
Thus with certain arguments a double free was ocurring.
Fixed by making sure mysql_string_to_lowercase() does always allocate a new mysql string class.1 parent dbeb8f5 commit 3f88b8e
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | 144 | | |
146 | 145 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 146 | + | |
| 147 | + | |
152 | 148 | | |
153 | 149 | | |
154 | 150 | | |
155 | 151 | | |
| 152 | + | |
156 | 153 | | |
157 | 154 | | |
158 | 155 | | |
| |||
0 commit comments