CVE-2016-0771: dnsserver: don't force UTF-8 for TXT
authorGarming Sam <garming@catalyst.net.nz>
Wed, 27 Jan 2016 23:36:43 +0000 (12:36 +1300)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 Mar 2016 05:52:25 +0000 (06:52 +0100)
While using a charset is not entirely logical, it allows testing of non
UTF-8 data (like inserting 0xFF into the TXT string).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11128
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11686

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/idl/dnsserver.idl

index ca9c371410027730b4502c715ad6825df1dab218..c7742e7d270213a13dd612c5db32fe5224c32f9a 100644 (file)
@@ -73,7 +73,7 @@ import "misc.idl", "dnsp.idl";
 
        typedef [public,gensize] struct {
                [value(strlen(str))] uint8 len;
-               [charset(UTF8)] uint8 str[len];
+               [charset(UNIX)] uint8 str[len];
        }
        DNS_RPC_NAME;