Fix some debug messages (#1583)

Increase max number of flows handled during fuzzing
This commit is contained in:
Ivan Nardi
2022-06-05 14:45:21 +02:00
committed by GitHub
parent 59c084b166
commit 1d492c9ed8
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
}
prefs->decode_tunnels = 1;
prefs->num_roots = 16;
prefs->max_ndpi_flows = 1024 * 1024;
prefs->max_ndpi_flows = 16 * 1024 * 1024;
prefs->quiet_mode = 0;
workflow = ndpi_workflow_init(prefs, NULL /* pcap handler will be set later */, 0, ndpi_serialization_format_json);
+1 -1
View File
@@ -671,7 +671,7 @@ void ndpi_search_kerberos(struct ndpi_detection_module_struct *ndpi_struct,
if (krb_parse(ndpi_struct, flow, 8) != 0)
{
NDPI_LOG_ERR(ndpi_struct, "[TGS-REP] Invalid packet received\n");
NDPI_LOG_DBG(ndpi_struct, "[TGS-REP] Invalid packet received\n");
return;
}
NDPI_LOG_DBG(ndpi_struct,
+2 -1
View File
@@ -39,7 +39,8 @@ static int search_telnet_again(struct ndpi_detection_module_struct *ndpi_struct,
int i;
#ifdef TELNET_DEBUG
printf("==> %s() [%s][direction: %u]\n", __FUNCTION__, packet->payload, packet->packet_direction);
printf("==> %s() [%.*s][direction: %u]\n", __FUNCTION__, packet->payload_packet_len,
packet->payload, packet->packet_direction);
#endif
if((packet->payload == NULL)