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

Add a FuzzerClean() function



This allows to free everything we allocated, so we can detect memory
leaks.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
GH: #2023
parent baae2cbc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -222,3 +222,7 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)

    return 0;
}

void FuzzerCleanup(void)
{
}
+4 −0
Original line number Diff line number Diff line
@@ -33,3 +33,7 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)
    (void)ASN1_parse_dump(bio_out, buf, len, 0, 0);
    return 0;
}

void FuzzerCleanup(void)
{
}
+4 −0
Original line number Diff line number Diff line
@@ -94,3 +94,7 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)

    return 0;
}

void FuzzerCleanup(void)
{
}
+4 −0
Original line number Diff line number Diff line
@@ -107,3 +107,7 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)

    return 0;
}

void FuzzerCleanup(void)
{
}
+4 −0
Original line number Diff line number Diff line
@@ -36,3 +36,7 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)
    BIO_free(in);
    return 0;
}

void FuzzerCleanup(void)
{
}
Loading