projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove an unused file
[oweals/openssl.git]
/
fuzz
/
cms.c
diff --git
a/fuzz/cms.c
b/fuzz/cms.c
index b57a6de96a63112cce7bc63e257771a437fb6594..959ef9365ad1f60c1d0405bf78dfa4bfaa0274d5 100644
(file)
--- a/
fuzz/cms.c
+++ b/
fuzz/cms.c
@@
-14,10
+14,14
@@
#include <openssl/bio.h>
#include <openssl/cms.h>
#include <openssl/bio.h>
#include <openssl/cms.h>
+#include <openssl/err.h>
#include "fuzzer.h"
int FuzzerInitialize(int *argc, char ***argv)
{
#include "fuzzer.h"
int FuzzerInitialize(int *argc, char ***argv)
{
+ OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL);
+ ERR_get_state();
+ CRYPTO_free_ex_index(0, -1);
return 1;
}
return 1;
}
@@
-41,6
+45,7
@@
int FuzzerTestOneInput(const uint8_t *buf, size_t len)
}
BIO_free(in);
}
BIO_free(in);
+ ERR_clear_error();
return 0;
}
return 0;
}