Lines Matching refs:fdp

225 static void FuzzAsServer(FuzzedDataProvider& fdp) {  in FuzzAsServer()  argument
230 while (fdp.remaining_bytes() > 0) { in FuzzAsServer()
231 auto size = fdp.ConsumeIntegralInRange<uint16_t>(0, kMaxPacketSize); in FuzzAsServer()
232 auto bytes = fdp.ConsumeBytes<uint8_t>(size); in FuzzAsServer()
254 static void FuzzAsClient(FuzzedDataProvider& fdp) { in FuzzAsClient() argument
259 while (fdp.remaining_bytes() > 0) { in FuzzAsClient()
260 auto op = fdp.ConsumeIntegral<uint8_t>(); in FuzzAsClient()
263 auto mtu = fdp.ConsumeIntegral<uint16_t>(); in FuzzAsClient()
268 auto type = (tGATT_DISC_TYPE)fdp.ConsumeIntegralInRange<uint8_t>( in FuzzAsClient()
270 uint16_t start = fdp.ConsumeIntegral<uint16_t>(); in FuzzAsClient()
271 uint16_t end = fdp.ConsumeIntegral<uint16_t>(); in FuzzAsClient()
276 auto type = (tGATT_READ_TYPE)fdp.ConsumeIntegralInRange<uint8_t>( in FuzzAsClient()
279 fdp.ConsumeData(&param, sizeof(param)); in FuzzAsClient()
284 auto type = (tGATT_WRITE_TYPE)fdp.ConsumeIntegralInRange<uint8_t>( in FuzzAsClient()
288 fdp.ConsumeIntegralInRange<uint16_t>(0, sizeof(value.value)); in FuzzAsClient()
289 value.len = fdp.ConsumeData(&value.value, value.len); in FuzzAsClient()
294 auto type = fdp.ConsumeBool(); in FuzzAsClient()
301 auto size = fdp.ConsumeIntegralInRange<uint16_t>(0, kMaxPacketSize); in FuzzAsClient()
302 auto bytes = fdp.ConsumeBytes<uint8_t>(size); in FuzzAsClient()
317 FuzzedDataProvider fdp(data, size); in LLVMFuzzerTestOneInput() local
319 if (fdp.ConsumeBool()) { in LLVMFuzzerTestOneInput()
320 FuzzAsServer(fdp); in LLVMFuzzerTestOneInput()
322 FuzzAsClient(fdp); in LLVMFuzzerTestOneInput()