29 lines
977 B
Diff
29 lines
977 B
Diff
From b687813ac362ff71085d192a4b7821235345feea Mon Sep 17 00:00:00 2001
|
|
From: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
|
|
Date: Sat, 25 Apr 2020 11:03:30 +1200
|
|
Subject: [PATCH 15/22] CVE-2020-10745: ndr/dns_utils: correct a comment
|
|
|
|
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14378
|
|
|
|
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
|
|
---
|
|
librpc/ndr/ndr_dns_utils.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/librpc/ndr/ndr_dns_utils.c b/librpc/ndr/ndr_dns_utils.c
|
|
index 2d9b5f1bc1e..2ce300863bc 100644
|
|
--- a/librpc/ndr/ndr_dns_utils.c
|
|
+++ b/librpc/ndr/ndr_dns_utils.c
|
|
@@ -49,7 +49,7 @@ enum ndr_err_code ndr_push_dns_string_list(struct ndr_push *ndr,
|
|
|
|
complen = strcspn(s, ".");
|
|
|
|
- /* we need to make sure the length fits into 6 bytes */
|
|
+ /* the length must fit into 6 bits (i.e. <= 63) */
|
|
if (complen > 0x3F) {
|
|
return ndr_push_error(ndr, NDR_ERR_STRING,
|
|
"component length %u[%08X] > " \
|
|
--
|
|
2.17.1
|
|
|