Fix some debug messages (#1583)
Increase max number of flows handled during fuzzing
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user