projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d9691f
)
fuzz/asn1parse.c: Clean up non-portable code and catch malloc failure
author
Dr. David von Oheimb
<David.von.Oheimb@siemens.com>
Sat, 12 Jun 2021 09:35:09 +0000
(11:35 +0200)
committer
Dr. David von Oheimb
<dev@ddvo.net>
Tue, 15 Jun 2021 12:23:29 +0000
(14:23 +0200)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15722)
fuzz/asn1parse.c
patch
|
blob
|
history
diff --git
a/fuzz/asn1parse.c
b/fuzz/asn1parse.c
index 72b0df8a461063faa2997a3fcd6d1e529cb1dc3c..7401375bf071c941d0055510a3e471c9ebc234e6 100644
(file)
--- a/
fuzz/asn1parse.c
+++ b/
fuzz/asn1parse.c
@@
-23,9
+23,9
@@
static BIO *bio_out;
int FuzzerInitialize(int *argc, char ***argv)
{
- bio_out = BIO_new
_file("/dev/null", "w");
+ bio_out = BIO_new
(BIO_s_null()); /* output will be ignored */
if (bio_out == NULL)
-
bio_out = BIO_new(BIO_s_mem())
;
+
return 0
;
OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL);
ERR_clear_error();
CRYPTO_free_ex_index(0, -1);