aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz/conf.c
diff options
context:
space:
mode:
authorBen Laurie <ben@links.org>2016-06-04 16:10:49 +0100
committerBen Laurie <ben@links.org>2016-07-01 13:45:45 +0100
commit90d28f0519427ffc293f880c423d9c4395a6fcd4 (patch)
treebb3be2701c6ea2bbe31b6770c1c104fe8c5e4d5c /fuzz/conf.c
parent2c12f22c3364a1e562a19415f9929359945a7c21 (diff)
downloadopenssl-90d28f0519427ffc293f880c423d9c4395a6fcd4.tar.gz
Run the fuzzing corpora as tests.
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'fuzz/conf.c')
-rw-r--r--fuzz/conf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fuzz/conf.c b/fuzz/conf.c
index d10d6c7f33..a76068dd74 100644
--- a/fuzz/conf.c
+++ b/fuzz/conf.c
@@ -15,6 +15,10 @@
#include <openssl/conf.h>
#include "fuzzer.h"
+int FuzzerInitialize(int *argc, char ***argv) {
+ return 1;
+}
+
int FuzzerTestOneInput(const uint8_t *buf, size_t len) {
CONF *conf = NCONF_new(NULL);
BIO *in = BIO_new(BIO_s_mem());
@@ -22,7 +26,6 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) {
OPENSSL_assert((size_t)BIO_write(in, buf, len) == len);
NCONF_load_bio(conf, in, &eline);
- //NCONF_dump_fp(conf, stdout);
NCONF_free(conf);
BIO_free(in);