mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-17 20:42:21 +02:00
mdns: Fix fuzzer from miss-interpreting adding services as timeouts
* Original commit: espressif/esp-idf@14099fe15e
This commit is contained in:
committed by
suren-gabrielyan-espressif
parent
8a8d58d4dc
commit
bc4cda8ea7
@ -48,12 +48,8 @@ esp_err_t esp_timer_create(const esp_timer_create_args_t* create_args,
|
|||||||
|
|
||||||
uint32_t xTaskGetTickCount(void)
|
uint32_t xTaskGetTickCount(void)
|
||||||
{
|
{
|
||||||
struct timeval tv;
|
static uint32_t tick = 0;
|
||||||
struct timezone tz;
|
return tick++;
|
||||||
if (gettimeofday(&tv, &tz) == 0) {
|
|
||||||
return (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Queue mock
|
/// Queue mock
|
||||||
|
@ -294,7 +294,7 @@
|
|||||||
#define CONFIG_MDNS_TASK_STACK_SIZE 4096
|
#define CONFIG_MDNS_TASK_STACK_SIZE 4096
|
||||||
#define CONFIG_MDNS_TASK_AFFINITY_CPU0 1
|
#define CONFIG_MDNS_TASK_AFFINITY_CPU0 1
|
||||||
#define CONFIG_MDNS_TASK_AFFINITY 0x0
|
#define CONFIG_MDNS_TASK_AFFINITY 0x0
|
||||||
#define CONFIG_MDNS_SERVICE_ADD_TIMEOUT_MS 100
|
#define CONFIG_MDNS_SERVICE_ADD_TIMEOUT_MS 1
|
||||||
#define CONFIG_MDNS_TIMER_PERIOD_MS 100
|
#define CONFIG_MDNS_TIMER_PERIOD_MS 100
|
||||||
#define CONFIG_MQTT_PROTOCOL_311 1
|
#define CONFIG_MQTT_PROTOCOL_311 1
|
||||||
#define CONFIG_MQTT_TRANSPORT_SSL 1
|
#define CONFIG_MQTT_TRANSPORT_SSL 1
|
||||||
|
Reference in New Issue
Block a user