diff options
author | 2016-08-18 11:13:11 -0700 | |
---|---|---|
committer | 2016-08-18 11:13:11 -0700 | |
commit | 1c7a84202f954e9d4fe328a5fd4eaf8439d894ef (patch) | |
tree | 93503126ec8a4da9d9b2bc0a961e90634a1ba8ad /test/core/support/percent_decode_fuzzer.c | |
parent | c5c2c72d0fcbae0e3c05681ba3418f01a8511b54 (diff) |
Add a strict and a permissive decoder, allow different reserved alphabets
Diffstat (limited to 'test/core/support/percent_decode_fuzzer.c')
-rw-r--r-- | test/core/support/percent_decode_fuzzer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/core/support/percent_decode_fuzzer.c b/test/core/support/percent_decode_fuzzer.c index 730a2b85ba..d8d56b831d 100644 --- a/test/core/support/percent_decode_fuzzer.c +++ b/test/core/support/percent_decode_fuzzer.c @@ -49,7 +49,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { grpc_memory_counters_init(); gpr_slice input = gpr_slice_from_copied_buffer((const char *)data, size); gpr_slice output; - if (gpr_percent_decode_slice(input, &output)) { + if (gpr_percent_decode_slice(input, false, &output)) { + gpr_slice_unref(output); + } + if (gpr_percent_decode_slice(input, true, &output)) { gpr_slice_unref(output); } gpr_slice_unref(input); |