bind9/lib/isc/netmgr
Ondřej Surý d685d448e2 Fix isc_buffer_init capacity mismatch in DoH data chunk callback
isc_buffer_init() is given MAX_DNS_MESSAGE_SIZE (65535) as capacity but
only h2->content_length bytes are allocated.  This makes the buffer
believe it has more space than actually allocated.  A secondary bounds
check (new_bufsize <= h2->content_length) prevents actual overflow, but
the buffer invariant is violated.

Pass h2->content_length as the capacity to match the allocation.

(cherry picked from commit 8e240bbb5f)
2026-03-18 10:39:38 +00:00
..
http.c Fix isc_buffer_init capacity mismatch in DoH data chunk callback 2026-03-18 10:39:38 +00:00
netmgr-int.h Implement IP_LOCAL_PORT_RANGE socket option for Linux 2026-02-20 17:02:45 +01:00
netmgr.c Rename isc_net_getudpportrange() to isc_net_getportrange() 2026-02-20 17:02:45 +01:00
proxystream.c Do not stop timer in isc_nm_read_stop() in manual timer mode 2025-01-15 16:05:56 +01:00
proxyudp.c Use clang-format-20 to update formatting 2025-06-25 13:32:08 +10:00
socket.c Implement IP_LOCAL_PORT_RANGE socket option for Linux 2026-02-20 17:02:45 +01:00
streamdns.c attach socket before async streamdns_resume_processing 2025-11-20 17:55:00 +00:00
tcp.c Implement IP_LOCAL_PORT_RANGE socket option for Linux 2026-02-20 17:02:45 +01:00
timer.c Update netmgr, tasks, and applications to use isc_loopmgr 2022-08-26 09:09:24 +02:00
tlsstream.c Fix missing server socket detach in TLS accept error path 2026-03-16 11:05:03 +01:00
udp.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00