mirror of
https://github.com/nmap/nmap.git
synced 2026-10-24 04:43:03 +00:00
Fuzzer for gettcpopt_ts
This commit is contained in:
parent
5fb5bfb763
commit
e1ce99d5a2
2 changed files with 18 additions and 0 deletions
1
fuzz/.gitignore
vendored
1
fuzz/.gitignore
vendored
|
|
@ -2,4 +2,5 @@ fuzz_PacketParser
|
|||
fuzz_dns_packet_parseFromBuffer
|
||||
fuzz_ippackethdrinfo
|
||||
fuzz_traceroute_decode_reply
|
||||
fuzz_gettcpopt_ts
|
||||
corpus/
|
||||
|
|
|
|||
17
fuzz/fuzz_gettcpopt_ts.cc
Normal file
17
fuzz/fuzz_gettcpopt_ts.cc
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "common.h"
|
||||
#include "../tcpip.h"
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
extern "C"
|
||||
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
{
|
||||
fuzz_init();
|
||||
|
||||
volatile int ret;
|
||||
ret = gettcpopt_ts(data, size, NULL, NULL);
|
||||
(void) ret;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue