You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actionsbot
changed the title
Possible nullptr dereference in esp_event_handler_register_with()
Possible nullptr dereference in esp_event_handler_register_with() (IDFGH-2224)
Nov 20, 2019
esp-idf 4.0 beta2:
In esp_event/esp_event.c, esp_event_handler_register_with function:
The if (!loop_node) test needs to be done before SLIST_INIT.
` if (!last_loop_node ||
(last_loop_node && !SLIST_EMPTY(&(last_loop_node->base_nodes)) && is_loop_level_handler)) {
loop_node = (esp_event_loop_node_t*) calloc(1, sizeof(*loop_node));
`
The text was updated successfully, but these errors were encountered: