From: Kurt Roeckx Date: Sat, 19 Nov 2016 16:12:11 +0000 (+0100) Subject: FuzzerInitialize always exists X-Git-Tag: OpenSSL_1_1_1-pre1~2948 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=baae2cbc92accf4fa53a7b8faaf3df1153c943f5;p=oweals%2Fopenssl.git FuzzerInitialize always exists There was a time it could be NULL, but that was changed to always have it. Reviewed-by: Rich Salz GH: #2023 --- 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);