Copy paste error in genSeed.c
When running 'make check' target with the following configuration:
default_options = {
(...)
"valid": True,
"writer": False,
"xinclude": False,
(...)
}
Errors occurred, which pointed out that there is an empty folder in ".../fuzz/seed/valid". Investigating this problem it turned out, that probably in the main method of genSeed.c there is a copy paste error.
int
main(int argc, const char **argv) {
(...)
fuzzer = argv[1];
if (strcmp(fuzzer, "html") == 0) {
#ifdef HAVE_HTML_FUZZER
processArg = processPattern;
globalData.processFile = processHtml;
#endif
} else if (strcmp(fuzzer, "schema") == 0) {
#ifdef HAVE_SCHEMA_FUZZER
processArg = processPattern;
globalData.processFile = processSchema;
#endif
} else if (strcmp(fuzzer, "valid") == 0) {
**#ifdef HAVE_XINCLUDE_FUZZER**
processArg = processPattern;
globalData.processFile = processXml;
#endif
} else if (strcmp(fuzzer, "xinclude") == 0) {
#ifdef HAVE_XINCLUDE_FUZZER
processArg = processPattern;
globalData.processFile = processXml;
#endif
(...)
}
Following the pattern and changing the bold text to HAVE_VALID_FUZZER solves the issue.
Please correct me, if I am wrong here...otherwise it would be great if you could add this fix to a future release.
Greetings, Agnes
Edited by Agnes Dagdelen