sysown / proxysql

High-performance MySQL proxy with a GPL license.
http://www.proxysql.com
GNU General Public License v3.0
6.05k stars 983 forks source link

Fix crash on malformed packet received from MySQL - Port of #4742 #4743

Closed JavierJF closed 2 weeks ago

JavierJF commented 2 weeks ago

NOTE: This PR is a port of #4742.

This PR adds an integrity check for detecting malformed column-count packets when reading resultset metadata from MySQL. This check is a mitigation to prevents consistent crashes found due to certain malformed packets.