mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-28 12:30:58 +00:00
Use CC for fuzzer, not CXX
This commit is contained in:
1 parent
0beef1d770
commit
0b3f6d6aab
2 files changed
+7
-4
No files matched your search
+6
-2
@@ -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
|
||||
Reference in new issue
Block a user