fuzz: makes target sigpcap more reproducible

By removing the temporary rules file if it existed
before the first run
pull/5795/head
Philippe Antoine 5 years ago committed by Victor Julien
parent f2e9517434
commit a6bbb608f7

@ -61,6 +61,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
if (ConfYamlLoadString(configNoChecksum, strlen(configNoChecksum)) != 0) {
abort();
}
// do not load rules before reproducible DetectEngineReload
remove("/tmp/fuzz.rules");
surifuzz.sig_file = strdup("/tmp/fuzz.rules");
surifuzz.sig_file_exclusive = 1;
//loads rules after init

Loading…
Cancel
Save