| 67 | } |
| 68 | |
| 69 | static int test_invalid_hex_input(void) |
| 70 | { |
| 71 | ACL_JSON *json = acl_json_alloc(); |
| 72 | const char *data = "{\"bad\":\"A\\u12G4B\"}"; |
| 73 | const char *expect = "A" UTF8_REPLACEMENT "G4B"; |
| 74 | int ok; |
| 75 | |
| 76 | acl_json_update(json, data); |
| 77 | ok = acl_json_finish(json) |
| 78 | && check_tag_value(json, "bad", expect); |
| 79 | |
| 80 | acl_json_free(json); |
| 81 | return ok; |
| 82 | } |
| 83 | |
| 84 | static int test_invalid_surrogate_input(void) |
| 85 | { |
no test coverage detected
searching dependent graphs…