Bug #53699 | MySQL gives wrong error when the arg COM_FIELD_LIST's ist too long | ||
---|---|---|---|
Submitted: | 17 May 2010 12:20 | Modified: | 4 May 2015 12:31 |
Reporter: | Andrey Hristov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Errors | Severity: | S2 (Serious) |
Version: | 5.1.48 | OS: | Any |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[17 May 2010 12:20]
Andrey Hristov
[17 May 2010 13:25]
MySQL Verification Team
Thank you for the bug report.
[4 May 2015 11:23]
Catalin Besleaga
Posted by developer: Bug was fixed in the WL#7126. The error message and the length check that was previously made in sql_parse.cc were moved to parse_packet method in protocol_classic.cc:938: if (len >= packet_length || len > NAME_LEN) goto malformed; ... malformed: my_error(ER_MALFORMED_PACKET, MYF(0)); The error was changed to ER_MALFORMED_PACKET("Malformed communication packet.")
[4 May 2015 12:31]
Paul DuBois
Noted in 5.7.8, 5.8.0 changelogs. The error produced for a COM_FIELD_LIST command with too much data was changed from ER_UNKNOWN_COM_ERROR to the more informative ER_MALFORMED_PACKET.