summaryrefslogtreecommitdiff
path: root/fuzz/driver.c
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2016-11-19 17:12:11 +0100
committerKurt Roeckx <kurt@roeckx.be>2016-12-03 00:14:14 +0100
commitbaae2cbc92accf4fa53a7b8faaf3df1153c943f5 (patch)
tree22a78b618bad9737f38ab3f5b3ad710f6b756f80 /fuzz/driver.c
parentf3e911d5ed16db6a129306675e20e51d1ee81e1a (diff)
downloadopenssl-new-baae2cbc92accf4fa53a7b8faaf3df1153c943f5.tar.gz
FuzzerInitialize always exists
There was a time it could be NULL, but that was changed to always have it. Reviewed-by: Rich Salz <rsalz@openssl.org> GH: #2023
Diffstat (limited to 'fuzz/driver.c')
-rw-r--r--fuzz/driver.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fuzz/driver.c b/fuzz/driver.c
index 2c16a5e2e6..d4b11cd6a4 100644
--- a/fuzz/driver.c
+++ b/fuzz/driver.c
@@ -17,9 +17,7 @@
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)
@@ -33,8 +31,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
int main(int argc, char** argv)
{
- if (FuzzerInitialize)
- FuzzerInitialize(&argc, &argv);
+ FuzzerInitialize(&argc, &argv);
while (__AFL_LOOP(10000)) {
uint8_t *buf = malloc(BUF_SIZE);