radare2/test/fuzz/fuzz_pkcs7_parse.c
2022-08-22 20:08:07 +02:00

18 lines
378 B
C

#include <r_types.h>
#include <r_util/pj.h>
#include <r_util/r_asn1.h>
#include <r_util/r_log.h>
#include <r_util/r_x509.h>
#include <r_util/r_pkcs7.h>
int LLVMFuzzerInitialize(int *lf_argc, char ***lf_argv) {
r_log_set_quiet (true);
return 0;
}
int LLVMFuzzerTestOneInput(const ut8 *data, size_t len) {
RCMS *out = r_pkcs7_parse_cms (data, len);
free (out);
return 0;
}