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

double free in multipart processing #402

Open
whistlerwzc opened this issue Aug 11, 2023 · 0 comments
Open

double free in multipart processing #402

whistlerwzc opened this issue Aug 11, 2023 · 0 comments
Labels

Comments

@whistlerwzc
Copy link

In function htp_ch_multipart_callback_request_body_data at htp_content_handlers.c,
if an error occurs while adding newly allocated params to tx->request_params, the func just returns without setting tx->request_mpartp->gave_up_data, thus there's a risk of double-free in htp_tx_destroy_incomplete.
However, i don't have any ideas on how to resolve it at present so i try to look up for some suggestions here,
Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants