Add some fuzzers to test other data structures. (#1870)
Start using a dictionary for fuzzing (see: https://llvm.org/docs/LibFuzzer.html#dictionaries). Remove some dead code. Fuzzing with debug enabled is not usually a great idea (from performance POV). Keep the code since it might be useful while debugging.
This commit is contained in:
@@ -32,7 +32,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
ndpi_des_fitting(values, num_iteration, &alpha_des, &beta);
|
||||
ndpi_free(values);
|
||||
|
||||
significance = fuzzed_data.ConsumeFloatingPointInRange<float>(0, 1);
|
||||
significance = fuzzed_data.ConsumeFloatingPointInRange<float>(0, 1.1);
|
||||
rc_ses = ndpi_ses_init(&s, alpha_ses, significance);
|
||||
rc_des = ndpi_des_init(&d, alpha_des, beta, significance);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user