diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-04-05 15:55:52 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-04-25 14:13:03 -0400 |
commit | bb37ad695729984553275880cce131c47361345f (patch) | |
tree | c87b16e6a5b8b2a238d01f983bd697b4a6988a74 /src/test | |
parent | 73df91bbb55498b05faae16b49ab49545fdffa8f (diff) | |
download | tor-bb37ad695729984553275880cce131c47361345f.tar.gz tor-bb37ad695729984553275880cce131c47361345f.zip |
Add fuzzing support for several more groups of kvlines flags
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/fuzz/fuzz_strops.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/fuzz/fuzz_strops.c b/src/test/fuzz/fuzz_strops.c index a37cbb5be8..459b4e21aa 100644 --- a/src/test/fuzz/fuzz_strops.c +++ b/src/test/fuzz/fuzz_strops.c @@ -235,6 +235,18 @@ fuzz_main(const uint8_t *stdin_buf, size_t data_size) kv_flags = 0; ENCODE_ROUNDTRIP(kv_enc, kv_dec, config_free_lines_); break; + case 7: + kv_flags = KV_OMIT_VALS; + ENCODE_ROUNDTRIP(kv_enc, kv_dec, config_free_lines_); + break; + case 8: + kv_flags = KV_QUOTED; + ENCODE_ROUNDTRIP(kv_enc, kv_dec, config_free_lines_); + break; + case 9: + kv_flags = KV_QUOTED|KV_OMIT_VALS; + ENCODE_ROUNDTRIP(kv_enc, kv_dec, config_free_lines_); + break; } return 0; |