Use CC for fuzzer, not CXX

This commit is contained in:
cpq committed 2022-09-30 11:44:50 +01:00
1 parent 0beef1d770
commit 0b3f6d6aab
2 files changed
+7 -4

No files matched your search

+6 -2
View File
@@ -88,12 +88,16 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
#if defined(MAIN)
int main(int argc, char *argv[]) {
int res = EXIT_FAILURE;
if (argc > 1) {
size_t len = 0;
char *buf = mg_file_read(&mg_fs_posix, argv[1], &len);
if (buf != NULL) LLVMFuzzerTestOneInput((uint8_t *) buf, len);
if (buf != NULL) {
LLVMFuzzerTestOneInput((uint8_t *) buf, len);
res = EXIT_SUCCESS;
}
free(buf);
}
return 0;
return res;
}
#endif