]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli/security: Test hex‐escapes that should be literals
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 20 Sep 2023 03:01:26 +0000 (15:01 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 27 Sep 2023 02:43:28 +0000 (02:43 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/security/tests/test_sddl_conditional_ace.c

index 9aa87fbf0b14c3852004f88c434500c2526552d6..5ce9dbab87aa56c2ff6c981cac00a7c696187800 100644 (file)
@@ -782,6 +782,10 @@ static void test_a_number_of_invalid_strings(void **state)
                "()",
                /* relational op with with complex RHS */
                "(@Device.bb == (@USER.x < 62))",
+               /* hex‐escapes that should be literals */
+               ("(@Device.%002e == 3)"),
+               ("(@Device.%002f == 3)"),
+               ("(@Device.%003a == 3)"),
        };
        size_t i, length;
        TALLOC_CTX *mem_ctx = talloc_new(NULL);