summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ad4da7f)
Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #2023
#include <openssl/x509v3.h>
#include "fuzzer.h"
#include <openssl/x509v3.h>
#include "fuzzer.h"
int FuzzerInitialize(int *argc, char ***argv)
{
int FuzzerInitialize(int *argc, char ***argv)
{
+ bio_out = BIO_new_file("/dev/null", "w");
return 1;
}
int FuzzerTestOneInput(const uint8_t *buf, size_t len)
{
return 1;
}
int FuzzerTestOneInput(const uint8_t *buf, size_t len)
{
- static BIO *bio_out;
-
- if (bio_out == NULL)
- bio_out = BIO_new_file("/dev/null", "w");
-
(void)ASN1_parse_dump(bio_out, buf, len, 0, 0);
return 0;
}
void FuzzerCleanup(void)
{
(void)ASN1_parse_dump(bio_out, buf, len, 0, 0);
return 0;
}
void FuzzerCleanup(void)
{