Home
last modified time | relevance | path

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

/external/usrsctp/fuzzer/
Dfuzzer_connect.c172 char *fuzz_packet_buffer; in LLVMFuzzerTestOneInput() local
430 fuzz_packet_buffer = malloc(data_size - 1 + COMMON_HEADER_SIZE); in LLVMFuzzerTestOneInput()
431 memcpy(fuzz_packet_buffer, fuzz_common_header, COMMON_HEADER_SIZE); // common header in LLVMFuzzerTestOneInput()
432 memcpy(fuzz_packet_buffer + COMMON_HEADER_SIZE, data + 1, data_size - 1); in LLVMFuzzerTestOneInput()
434 common_header = (struct sctp_common_header*) fuzz_packet_buffer; in LLVMFuzzerTestOneInput()
438 dump_packet(fuzz_packet_buffer, data_size - 1 + COMMON_HEADER_SIZE, SCTP_DUMP_INBOUND); in LLVMFuzzerTestOneInput()
439 usrsctp_conninput((void *)1, fuzz_packet_buffer, data_size - 1 + COMMON_HEADER_SIZE, 0); in LLVMFuzzerTestOneInput()
441 free(fuzz_packet_buffer); in LLVMFuzzerTestOneInput()