Home
last modified time | relevance | path

Searched refs:fuzz_ctx (Results 1 – 2 of 2) sorted by relevance

/openbmc/libpldm/tests/fuzz/
H A Dfd-fuzz.cpp146 struct fuzz_ops_ctx* fuzz_ctx = static_cast<struct fuzz_ops_ctx*>(ctx); in cb_components() local
150 if (fuzz_chance(fuzz_ctx, 4)) in cb_components()
161 struct fuzz_ops_ctx* fuzz_ctx = static_cast<struct fuzz_ops_ctx*>(ctx); in cb_imageset_versions() local
169 if (fuzz_chance(fuzz_ctx, 4)) in cb_imageset_versions()
181 struct fuzz_ops_ctx* fuzz_ctx = static_cast<struct fuzz_ops_ctx*>(ctx); in cb_update_component() local
183 if (fuzz_chance(fuzz_ctx, 4)) in cb_update_component()
190 assert(!fuzz_ctx->current_update); in cb_update_component()
192 fuzz_ctx->current_update = true; in cb_update_component()
193 fuzz_ctx->transferred = false; in cb_update_component()
194 fuzz_ctx->verified = false; in cb_update_component()
[all …]
/openbmc/libmctp/tests/fuzz/
H A Di2c-fuzz.c44 struct fuzz_ctx { struct
91 static bool fuzz_chance(struct fuzz_ctx *ctx, uint8_t percent) in fuzz_chance()
106 struct fuzz_ctx *ctx = c; in fuzz_i2c_tx()
120 struct fuzz_ctx *ctx = c; in fuzz_i2c_rxmsg()
129 static void do_rx(struct fuzz_ctx *ctx) in do_rx()
151 static void do_tx(struct fuzz_ctx *ctx) in do_tx()
199 struct fuzz_ctx *ctx = c; in fuzz_now()
223 struct fuzz_ctx _ctx = { in LLVMFuzzerTestOneInput()
230 struct fuzz_ctx *ctx = &_ctx; in LLVMFuzzerTestOneInput()