Project

General

Profile

Actions

Bug #6271

closed

libhtp: double free in multipart processing

Added by Juliana Fajardini Reichow over 1 year ago. Updated over 1 year ago.

Status:
Rejected
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

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.

To keep better track of https://github.com/OISF/libhtp/issues/402

Actions

Also available in: Atom PDF