Commit Graph

2 Commits

Author SHA1 Message Date
Ravi Jotwani bdb0b339d0
[uriparser] Fix null dereference in uri_dissect_query_malloc_fuzzer (#4174)
* fixed null dereference in uri_dissect_query_malloc_fuzzer

* removed unused include

* initialized chars_required, freed query_list if check unsuccessful, and used buf.data() instead of &buf[0]
2020-07-22 14:24:05 -07:00
Ravi Jotwani 36e6fa39fe
[uriparser] Add new fuzzers (#4134)
* added new fuzzer

* added new fuzzer

* removed commented code

* add license header for uri_parse_fuzzer

* get values from FuzzedDataProvider, awaiting fuzz targets for FileNames and Ipv4 in parse_fuzzer

* build working

* fixed size mismatch, used better consumption function for remaining input

* reduced maxSize for uri_dissect_query_malloc_fuzzer

* added missing fuzz targets, removed unnecessary import

* removed unused include, changed instances of std::string to string, removed ToVector, added checks, and removed usage of FuzzedDataProvider in uri_dissect_query_malloc_fuzzer

* fixed vector issue in uri_parse_fuzzer

* added explicit value checks, removed Yoda comparisons
2020-07-20 16:50:20 -07:00