Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent crash COM_STMT_EXECUTE and invalid stmt_id #4481

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

renecannao
Copy link
Contributor

@renecannao renecannao commented Mar 26, 2024

If an invalid stmt_id is passed to COM_STMT_EXECUTE , ProxySQL used to crash due to an assert().
It seems that some buggy clients execute COM_STMT_EXECUTE with an invalid stmt_id after an auto-reconnect.
This commit returns an error to the client.

Closes #3371
Closes #3808
Closes #4475

If an invalid stmt_id is passed to COM_STMT_EXECUTE , ProxySQL used to crash
due to an assert().
It seems that some buggy clients execute COM_STMT_EXECUTE with an invalid
stmt_id after an auto-reconnect.
This commit returns an error to the client.

Closes #3371
Closes #3808
Closes #4474
@renecannao renecannao merged commit b5b49c2 into v2.x Mar 28, 2024
44 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant