libhtp icon indicating copy to clipboard operation
libhtp copied to clipboard

double free in multipart processing

Open whistlerwzc opened this issue 1 year ago • 0 comments

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!

whistlerwzc avatar Aug 11 '23 09:08 whistlerwzc