projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More more on SM2 error codes and tidy up
[openssl.git]
/
fuzz
/
driver.c
diff --git
a/fuzz/driver.c
b/fuzz/driver.c
index 2c16a5e2e651a90ba0ac1dc849e81a31a0485222..21bbb255afe51066f16af31dff214dee347bba28 100644
(file)
--- a/
fuzz/driver.c
+++ b/
fuzz/driver.c
@@
-17,9
+17,7
@@
int LLVMFuzzerInitialize(int *argc, char ***argv)
{
int LLVMFuzzerInitialize(int *argc, char ***argv)
{
- if (FuzzerInitialize)
- return FuzzerInitialize(argc, argv);
- return 0;
+ return FuzzerInitialize(argc, argv);
}
int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
}
int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
@@
-33,8
+31,7
@@
int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
int main(int argc, char** argv)
{
int main(int argc, char** argv)
{
- if (FuzzerInitialize)
- FuzzerInitialize(&argc, &argv);
+ FuzzerInitialize(&argc, &argv);
while (__AFL_LOOP(10000)) {
uint8_t *buf = malloc(BUF_SIZE);
while (__AFL_LOOP(10000)) {
uint8_t *buf = malloc(BUF_SIZE);
@@
-43,6
+40,8
@@
int main(int argc, char** argv)
FuzzerTestOneInput(buf, size);
free(buf);
}
FuzzerTestOneInput(buf, size);
free(buf);
}
+
+ FuzzerCleanup();
return 0;
}
return 0;
}