Add negative test for unquoted property string
authorPauli <pauli@openssl.org>
Sun, 15 Jan 2023 23:04:11 +0000 (10:04 +1100)
committerPauli <pauli@openssl.org>
Thu, 19 Jan 2023 23:15:53 +0000 (10:15 +1100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/20023)

test/property_test.c

index 3b978638036ccfbe6c4eaf0d9dc09a62c81b3660..cd89958a01b7017da9902d7bdbf0c38ed421680b 100644 (file)
@@ -194,6 +194,7 @@ static const struct {
     { 0, "a=abc,#@!, n=1" },    /* non-ASCII character located */
     { 1, "a='Hello" },          /* Unterminated string */
     { 0, "a=\"World" },         /* Unterminated string */
+    { 0, "a=_abd_" },           /* Unquoted string not starting with alphabetic */
     { 1, "a=2, n=012345678" },  /* Bad octal digit */
     { 0, "n=0x28FG, a=3" },     /* Bad hex digit */
     { 0, "n=145d, a=2" },       /* Bad decimal digit */