aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/json
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nnoble@google.com>2015-02-23 10:28:00 -0800
committerGravatar Nicolas Noble <nnoble@google.com>2015-02-23 10:44:34 -0800
commita7b8b69d23b16b7ccd8d6cffcccef5ca3683be6b (patch)
tree1dcc6b845fd02d3b2c3b513d3280df84bce1bf09 /test/core/json
parent8b131922438d96579cb315777ca980e094883496 (diff)
Addressing security concerns.
-) 0x7f (Backspace) isn't a printable character. -) use sizeof(var) instead of sizeof(type).
Diffstat (limited to 'test/core/json')
-rw-r--r--test/core/json/json_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/json/json_test.c b/test/core/json/json_test.c
index 0e315e51ee..bc3c7a3da8 100644
--- a/test/core/json/json_test.c
+++ b/test/core/json/json_test.c
@@ -65,7 +65,7 @@ static testing_pair testing_pairs[] = {
/* Testing nested empty containers. */
{ " [ [ ] , { } , [ ] ] ", "[[],{},[]]", },
/* Testing escapes and control chars in key strings. */
- { " { \"\\n\\\\a , b\": 1, \"\": 0 } ", "{\"\\n\\\\a , b\":1,\"\":0}" },
+ { " { \"\x7f\\n\\\\a , b\": 1, \"\": 0 } ", "{\"\\u007f\\n\\\\a , b\":1,\"\":0}" },
/* Testing the writer's ability to cut off invalid UTF-8 sequences. */
{ "\"abc\xf0\x9d\x24\"", "\"abc\"" },
{ "\"\xff\"", "\"\"" },