summaryrefslogtreecommitdiff
path: root/librpc/idl
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2017-08-03 15:12:51 +1200
committerKarolin Seeger <kseeger@samba.org>2017-10-25 08:43:02 +0200
commit086b68c7188e2cfbeeb913f454b5072dcb689125 (patch)
tree8386322a2bae61ff586a61f601edc718d0d7cf15 /librpc/idl
parentd603ff0dc83ea41d26db92b6ee6032ebf82a875d (diff)
downloadsamba-086b68c7188e2cfbeeb913f454b5072dcb689125.tar.gz
dnsserver: Tighten DNS name checking
Add checks for the maximum permitted length, maximum number of labels and the maximum label length. These extra checks will be used by the DNS wild card handling. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> BUG: https://bugzilla.samba.org/show_bug.cgi?id=12952 (cherry picked from commit 34acf5a99214639e5e7792a9e85d24c9fd7640ac)
Diffstat (limited to 'librpc/idl')
-rw-r--r--librpc/idl/dns.idl3
1 files changed, 3 insertions, 0 deletions
diff --git a/librpc/idl/dns.idl b/librpc/idl/dns.idl
index aebb106b053..8e8eed5ab23 100644
--- a/librpc/idl/dns.idl
+++ b/librpc/idl/dns.idl
@@ -18,6 +18,9 @@ import "misc.idl", "dnsp.idl";
interface dns
{
const int DNS_SERVICE_PORT = 53;
+ const int DNS_MAX_LABELS = 127;
+ const int DNS_MAX_DOMAIN_LENGTH = 253;
+ const int DNS_MAX_LABEL_LENGTH = 63;
typedef [public,bitmap16bit] bitmap {
DNS_RCODE = 0x000F,