2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Use isc_buffer_t to keep track of incoming POST data

This commit replaces the ad-hoc 64K buffer for incoming POST data with
isc_buffer_t backed by dynamically allocated buffer sized accordingly
to the value in the "Content-Length" header.
This commit is contained in:
Artem Boldariev
2021-07-21 20:10:46 +03:00
parent 0ca790d9bf
commit 6fe4ab39b9
2 changed files with 31 additions and 10 deletions

View File

@@ -803,6 +803,7 @@ typedef struct isc_nmsocket_h2 {
uint8_t *buf;
size_t bufsize;
size_t bufpos;
isc_buffer_t rbuf;
int32_t stream_id;
isc_nm_http_session_t *session;