]> git.ipfire.org Git - thirdparty/bind9.git/commit
compression buffer was not reused correctly
authorEvan Hunt <each@isc.org>
Tue, 16 Aug 2022 23:26:02 +0000 (16:26 -0700)
committerMichał Kępień <michal@isc.org>
Thu, 8 Sep 2022 09:15:52 +0000 (11:15 +0200)
commit47e9fa981e56a7a232f3219fe8a40525c79d748b
treedfe547bdc0139c9549caa4925f0a6759ee549dac
parent2cffc5b849ac00e7602c1f0402feaecb54ddb246
compression buffer was not reused correctly

when the compression buffer was reused for multiple statistics
requests, responses could grow beyond the correct size. this was
because the buffer was not cleared before reuse; compressed data
was still written to the beginning of the buffer, but then the size
of used region was increased by the amount written, rather than set
to the amount written. this caused responses to grow larger and
larger, potentially reading past the end of the allocated buffer.
lib/isc/httpd.c