Bug #96950 | CONCAT() can generate corrupted output | ||
---|---|---|---|
Submitted: | 19 Sep 2019 16:48 | Modified: | 6 Feb 2020 19:16 |
Reporter: | Jay Edgar | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S2 (Serious) |
Version: | 5.6, 5.7 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | concat, corruption |
[19 Sep 2019 16:48]
Jay Edgar
[23 Sep 2019 12:08]
MySQL Verification Team
Hello Mr. Edgar, Thank you for your bug report. I have analysed carefully the code that you are referring to and I conclude that you are correct. Verified as reported for MySQL 5.6 and 5.7.
[26 Sep 2019 5:50]
Tor Didriksen
Posted by developer: concat an concat_ws do indeed have multiple problems in 5.7 and below. They were both completely rewritten in the patch for Bug#22893669 CONCAT: "SOURCE AND DESTINATION OVERLAP IN MEMCPY"
[26 Sep 2019 12:21]
MySQL Verification Team
Thank you Tor ....
[6 Feb 2020 19:16]
Paul DuBois
Posted by developer: Fixed in 5.6.48, 5.7.30. CONCAT() and CONCAT_WS() could produce incorrect results in rare cases due to incorrect substring handling.
[7 Feb 2020 12:49]
MySQL Verification Team
Thank you, Paul .....