2
0
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:
Mukund Sivaraman
2015-11-11 09:55:25 +05:30
parent d9613f4c73
commit 9b17fd447c
2 changed files with 9 additions and 0 deletions

View File

@@ -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

View File

@@ -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;