]> git.ipfire.org Git - thirdparty/bind9.git/commit
Don't use stack allocated buffer for uv_write()
authorOndřej Surý <ondrej@isc.org>
Thu, 3 Dec 2020 07:33:21 +0000 (08:33 +0100)
committerOndřej Surý <ondrej@sury.org>
Thu, 3 Dec 2020 07:58:16 +0000 (08:58 +0100)
commit94afea932567bf1eb6ee5b80a1c7b2d4071980bd
tree66924cdb81d048f13639e09ffd7d761c2eeedd24
parentaefe2b99587bc85961321d105877a8304cac6943
Don't use stack allocated buffer for uv_write()

On FreeBSD, the stack is destroyed more aggressively than on Linux and
that revealed a bug where we were allocating the 16-bit len for the
TCPDNS message on the stack and the buffer got garbled before the
uv_write() sendback was executed.  Now, the len is part of the uvreq, so
we can safely pass it to the uv_write() as the req gets destroyed after
the sendcb is executed.
bin/tests/system/ixfr/prereq.sh [deleted file]
bin/tests/system/xfer/prereq.sh [deleted file]
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/tcpdns.c
util/copyrights