Extend fuzzers (correctly) to deal with permissive/strict encoding

pull/7774/head
Craig Tiller 8 years ago
parent 016493ed59
commit 4239968093
  1. 2
      test/core/support/percent_decode_fuzzer.c

@ -53,7 +53,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
input, gpr_url_percent_encoding_unreserved_bytes, &output)) { input, gpr_url_percent_encoding_unreserved_bytes, &output)) {
gpr_slice_unref(output); gpr_slice_unref(output);
} }
if (gpr_percent_decode_slice( if (gpr_strict_percent_decode_slice(
input, gpr_compatible_percent_encoding_unreserved_bytes, &output)) { input, gpr_compatible_percent_encoding_unreserved_bytes, &output)) {
gpr_slice_unref(output); gpr_slice_unref(output);
} }

Loading…
Cancel
Save