Commit dc0f623
Tor Didriksen
Bug#27618273 BUFFER OVERFLOW IN USERVAR,USERNAME,HOSTNAME WITH BROKEN UTF8
The function check_column_name() is used multiple places to verify
user input. In order to do a proper job it needs the length of the
input string, rather than just a pointer to the first character.
Also fix documentation for the validate_string() function.
This is a manual backport of
commit e12a5db2626bc9104f5536f1876d399e14f847f5
For check_column_name() we backport only the range check when calling
my_ismbchar(). In newer branches we also did a validate_string(),
but that introduced other/unwanted changes to some test results.
Extend suppressions in lsan.supp to work with newer perl versions.
Add CTORS taking a LEX_CSTRING for classes Simple_cstring and Name_string.
These are taken from
commit 46fe1cb52d168bd76bcce11cdb69a6e4ab647f4b
Bug#28787272: FIX -WCAST-QUAL COMPILATION WARNINGS [noclose]
Change-Id: I70bace14e55c701aec602b058e6ba42c18514cc71 parent bcc175a commit dc0f623
File tree
10 files changed
+33
-23
lines changed- include
- mysql-test
- sql-common
- sql
10 files changed
+33
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
1305 | 1305 | | |
1306 | 1306 | | |
1307 | 1307 | | |
1308 | | - | |
1309 | | - | |
| 1308 | + | |
1310 | 1309 | | |
1311 | 1310 | | |
1312 | 1311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
5507 | 5507 | | |
5508 | 5508 | | |
5509 | 5509 | | |
5510 | | - | |
| 5510 | + | |
5511 | 5511 | | |
5512 | 5512 | | |
5513 | 5513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
3731 | 3731 | | |
3732 | 3732 | | |
3733 | 3733 | | |
3734 | | - | |
| 3734 | + | |
3735 | 3735 | | |
3736 | 3736 | | |
3737 | 3737 | | |
| |||
4479 | 4479 | | |
4480 | 4480 | | |
4481 | 4481 | | |
4482 | | - | |
| 4482 | + | |
4483 | 4483 | | |
4484 | 4484 | | |
4485 | 4485 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
4306 | 4306 | | |
4307 | 4307 | | |
4308 | 4308 | | |
4309 | | - | |
4310 | | - | |
| 4309 | + | |
4311 | 4310 | | |
4312 | 4311 | | |
4313 | 4312 | | |
| 4313 | + | |
| 4314 | + | |
| 4315 | + | |
4314 | 4316 | | |
4315 | 4317 | | |
4316 | 4318 | | |
4317 | 4319 | | |
4318 | | - | |
| 4320 | + | |
4319 | 4321 | | |
4320 | | - | |
4321 | | - | |
| 4322 | + | |
4322 | 4323 | | |
4323 | 4324 | | |
4324 | 4325 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
2982 | 2983 | | |
2983 | 2984 | | |
2984 | 2985 | | |
2985 | | - | |
| 2986 | + | |
2986 | 2987 | | |
2987 | 2988 | | |
2988 | 2989 | | |
| |||
0 commit comments