mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Limit rndc query message sizes to 32 KiB (#41073)
This commit is contained in:
5
CHANGES
5
CHANGES
@@ -1,3 +1,8 @@
|
|||||||
|
4258. [bug] Limit rndc query message sizes to 32 KiB. This should
|
||||||
|
not break any legitimate rndc commands, but will
|
||||||
|
prevent a rogue rndc query from allocating too
|
||||||
|
much memory. [RT #41073]
|
||||||
|
|
||||||
4257. [cleanup] Python scripts reported incorrect version. [RT #41080]
|
4257. [cleanup] Python scripts reported incorrect version. [RT #41080]
|
||||||
|
|
||||||
4256. [bug] Allow rndc command arguments to be quoted so as
|
4256. [bug] Allow rndc command arguments to be quoted so as
|
||||||
|
@@ -565,6 +565,10 @@ newconnection(controllistener_t *listener, isc_socket_t *sock) {
|
|||||||
|
|
||||||
conn->sock = sock;
|
conn->sock = sock;
|
||||||
isccc_ccmsg_init(listener->mctx, sock, &conn->ccmsg);
|
isccc_ccmsg_init(listener->mctx, sock, &conn->ccmsg);
|
||||||
|
|
||||||
|
/* Set a 32 KiB upper limit on incoming message. */
|
||||||
|
isccc_ccmsg_setmaxsize(&conn->ccmsg, 32768);
|
||||||
|
|
||||||
conn->ccmsg_valid = ISC_TRUE;
|
conn->ccmsg_valid = ISC_TRUE;
|
||||||
conn->sending = ISC_FALSE;
|
conn->sending = ISC_FALSE;
|
||||||
conn->buffer = NULL;
|
conn->buffer = NULL;
|
||||||
|
Reference in New Issue
Block a user