mirror of
https://github.com/nmap/nmap.git
synced 2026-11-15 10:47:29 +00:00
17 lines
290 B
C++
17 lines
290 B
C++
#include "common.h"
|
|
#include "../libnetutil/massdns.h"
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
extern "C"
|
|
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
|
{
|
|
fuzz_init();
|
|
|
|
DNS::Packet p;
|
|
volatile size_t plen = p.parseFromBuffer(data, size);
|
|
(void) plen;
|
|
|
|
return 0;
|
|
}
|