mirror of
https://github.com/ntop/ntopng.git
synced 2026-10-21 22:10:23 +00:00
* fuzz: add SNMP response and syslog parser fuzz targets, wire flow-checks into `fuzz_dissect_packet` - `fuzz_snmp_response`: fuzzes `SNMP::handle_async_response()` (`src/SNMP.cpp`) via net-snmp's real `snmp_parse()`, gated entirely behind `HAVE_LIBSNMP` so it only does real work on standard builds; requires `SNMP::vm` to be initialized in the constructor since the harness calls `handle_async_response()` directly without going through the normal request/response flow. - `fuzz_syslog_parse`: fuzzes `SyslogParserInterface::parseLog()`. - `fuzz_dissect_packet`: after the packet-dissection loop, replicate the post-pcap-read sequence PcapInterface.cpp runs in real pcap-replay mode (two full `purgeIdle()` scans + a `flow_end_housekeeping() walk`) so protocol_detected and flow_end flow-checks are deterministically exercised on every run instead of only by accident when the mutator happens to produce idle-triggering packet timestamps.
2 lines
26 B
Text
2 lines
26 B
Text
[libfuzzer]
|
|
max_len=65536
|