Bug #102829 | Improperly memory allocation while field metadata sending | ||
---|---|---|---|
Submitted: | 5 Mar 2021 14:48 | Modified: | 9 Mar 2021 13:33 |
Reporter: | Georgy Kirichenko | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Connection Handling | Severity: | S3 (Non-critical) |
Version: | 5.7 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[5 Mar 2021 14:48]
Georgy Kirichenko
[8 Mar 2021 13:21]
MySQL Verification Team
Hi Mr. Kirichenko, Thank you for your bug report. We have analysed it very carefully and concluded that you are correct. Verified as reported.
[9 Mar 2021 7:22]
Georgy Kirichenko
I was wrong speaking about invalid allocation - String class contract mentions that there are at least one more byte reserved for nul-terminator: @param alloc_length The requested string size in characters, excluding any null terminator. and the code is functionally correct.
[9 Mar 2021 13:33]
MySQL Verification Team
Hi, Thank you Mr. Kirichenko, We also forgot about that fact. Not a bug.