Lines Matching refs:fdp
28 void RunDeserialize(keymaster::Serializable* ser, FuzzedDataProvider* fdp) { in RunDeserialize() argument
29 uint16_t buf_size = fdp->ConsumeIntegralInRange<uint16_t>(kMinBufferSize, kMaxBufferSize); in RunDeserialize()
33 int32_t end = fdp->ConsumeIntegralInRange<int32_t>(0, buf_size); in RunDeserialize()
37 void RunSerialize(keymaster::Serializable* ser, FuzzedDataProvider* fdp) { in RunSerialize() argument
41 int32_t end = fdp->ConsumeIntegralInRange<int32_t>(0, buf_size); in RunSerialize()
46 FuzzedDataProvider fdp(data, size); in LLVMFuzzerTestOneInput() local
48 keymaster::getSerializable(fdp.ConsumeEnum<keymaster::SerializableType>()); in LLVMFuzzerTestOneInput()
52 for (size_t i = 0; fdp.remaining_bytes() > 0; i++) { in LLVMFuzzerTestOneInput()
53 if (fdp.ConsumeBool()) { in LLVMFuzzerTestOneInput()
54 RunSerialize(serializable.get(), &fdp); in LLVMFuzzerTestOneInput()
56 RunDeserialize(serializable.get(), &fdp); in LLVMFuzzerTestOneInput()