Commit baae2cbc authored by Kurt Roeckx's avatar Kurt Roeckx
Browse files

FuzzerInitialize always exists

There was a time it could be NULL, but that was changed to always have it.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
GH: #2023
parent f3e911d5
Loading
Loading
Loading
Loading
−3
Changes for fuzz/driver.c: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -17,9 +17,7 @@

int LLVMFuzzerInitialize(int *argc, char ***argv)
{
    if (FuzzerInitialize)
    return FuzzerInitialize(argc, argv);
    return 0;
}

int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
@@ -33,7 +31,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)

int main(int argc, char** argv)
{
    if (FuzzerInitialize)
    FuzzerInitialize(&argc, &argv);

    while (__AFL_LOOP(10000)) {