Bug #91604 | stack-use-after-scope in _db_enter_() / mysql_select_db() detected by ASan | ||
---|---|---|---|
Submitted: | 11 Jul 2018 19:03 | Modified: | 12 Jul 2018 8:02 |
Reporter: | Yura Sorokin (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S2 (Serious) |
Version: | 5.5.60 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution |
[11 Jul 2018 19:03]
Yura Sorokin
[11 Jul 2018 19:04]
Yura Sorokin
Function 'dbConnect()' in 'client/mysqlcheck.c' has 'DBUG_ENTER("dbConnect")' at the beginning but ends with plain 'return' which causes stack corruption in Debug mode. Suggested fix: changing plain 'return's to 'DBUG_RETURN()'s.
[11 Jul 2018 19:05]
Yura Sorokin
A patch to make 5.5 code compilable with GCC 7.3/8.0 (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: mysql_5_5_gcc_7_3_asan_fix.diff (application/octet-stream, text), 1.33 KiB.
[11 Jul 2018 19:13]
Yura Sorokin
5.5 patch (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: bug91604_5_5.diff (application/octet-stream, text), 899 bytes.
[11 Jul 2018 19:54]
Yura Sorokin
5.6 patch (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: bug91604_5_6.diff (application/octet-stream, text), 434 bytes.
[11 Jul 2018 19:56]
Yura Sorokin
5.7 patch (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: bug91604_5_7.diff (application/octet-stream, text), 461 bytes.
[12 Jul 2018 8:02]
MySQL Verification Team
Hello Yura Sorokin, Thank you for the report and contribution. Thanks, Umesh
[17 Aug 2018 14:35]
Ståle Deraas
Hi Yura, Please see http://bugs.mysql.com/bug.php?id=89420 for reason for not accepting your contribution for compiling 5.5 with gcc 7.3/8.0 .