Fix heap-after-use between PROXYSQL INTERNAL SESSION and SHOW PROCESSLIST#5191
Fix heap-after-use between PROXYSQL INTERNAL SESSION and SHOW PROCESSLIST#5191renecannao merged 3 commits intov3.0from
PROXYSQL INTERNAL SESSION and SHOW PROCESSLIST#5191Conversation
…ESSLIST' Missing query cleanup in 'PROXYSQL INTERNAL SESSION' could lead to invalid memory accesses during 'SHOW PROCESSLIST' sessions scan.
Summary of ChangesHello @JavierJF, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves a significant memory safety issue where Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly addresses a heap-use-after-free vulnerability by ensuring RequestEnd is called before the packet memory is freed. The logic is sound and the included comments clarify the change. The addition of a regression test is excellent for preventing this issue from recurring. I've found a minor area for improvement in the new test file to reduce code duplication.
|
Can one of the admins verify this patch? |
92a7fed to
6ff8501
Compare
|
Add to whitelist |
|
retest this please |
Signed-off-by: Miro Stauder <miro@proxysql.com>
|



This PR fixes potential invalid memory accesses from
SHOW PROCESSLIST. Missing query cleanup in 'PROXYSQL INTERNAL SESSION' could lead to invalid memory accesses during 'SHOW PROCESSLIST' sessions scan.