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

Several required fixes for the WebInterfacePlugin #4392

Merged
merged 5 commits into from
Dec 1, 2023
Merged

Conversation

JavierJF
Copy link
Collaborator

Several minor fixes to ProxySQL itself, and some required changes to libhttpserver dependency, a brief summary:

  • Fix ProxySQL running under Valgrind again. Right now execution is aborted due to a zero length realloc.
  • Fix invalid tokenization of URLs by libhttpserver when URL contains characters that are required to be escaped.
  • Fix double-free during plugin de-initialization due to static global variables on libhttpserver.

Invalid double-free were taking place during plugin de-initialization
due to ODR violations motivated by these objects. Simplest solution is
making them not require 'allocation/deallocation'.
Previously 'libhttpserver' only exposed method 'get_path_pieces()', this
method makes use of the internal 'standardized_url' for tokenizing the
URL. This method has the limitation of performing the escaping prior to
the tokenization of elements, incurring into improper tokenization. The
new introduced function 'get_url_pieces()' corrects this behavior.
@renecannao renecannao merged commit 91b04d5 into v2.x Dec 1, 2023
215 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
Development

Successfully merging this pull request may close these issues.

2 participants