Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
libcper
/
d759a18bd3b74811b3a0c3f21cda0378ea02c5d6
/
.
/
tests
/
fuzz_cper_buf_to_ir.cpp
blob: 586c2ba4520e5d4fdb9fb92ed430617533de4d99 [
file
] [
log
] [
blame
]
#include
"libcper/cper-parse.h"
extern
"C"
int
LLVMFuzzerTestOneInput
(
const
uint8_t
*
data
,
size_t
size
)
{
json_object
*
ir
=
cper_buf_to_ir
(
data
,
size
);
if
(
ir
!=
NULL
)
{
json_object_put
(
ir
);
}
return
0
;
}