diff options
author | dan <dan@noemail.net> | 2015-09-17 17:21:09 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2015-09-17 17:21:09 +0000 |
commit | 2e8f5517f773af80f313f0768a42b24f295d5536 (patch) | |
tree | 4a2195eb0d8585a74d7f99275ea22fe8f10b4d1f /test/json102.test | |
parent | cf346d7a9ceae1d50aad501bbd44d39f6d3204bb (diff) | |
download | sqlite-2e8f5517f773af80f313f0768a42b24f295d5536.tar.gz sqlite-2e8f5517f773af80f313f0768a42b24f295d5536.zip |
Avoid passing (signed char) values directly to isspace(), isalnum() or isdigit() in json1.c. Cast the value to (unsigned char) first.
FossilOrigin-Name: 6713e35b8a8c997aa2717e86ce6dcd63bb993477
Diffstat (limited to 'test/json102.test')
-rw-r--r-- | test/json102.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/json102.test b/test/json102.test index da9fbd1b7..950d4196b 100644 --- a/test/json102.test +++ b/test/json102.test @@ -278,4 +278,11 @@ do_execsql_test json102-1132 { } {123} } ;# end ifcapable vtab +#------------------------------------------------------------------------- +# Test that json_valid() correctly identifies non-ascii range +# characters as non-whitespace. +# +do_execsql_test json102-1201 { SELECT json_valid(char(32) || '"xyz"') } 1 +do_execsql_test json102-1202 { SELECT json_valid(char(200) || '"xyz"') } 0 + finish_test |