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
When I run the WifiAdvanceChatServer example on Arduino Giga, the function call
wifi_if->set_timeout(_timeout);
in line 78 of library file Wifi.cpp crashed.
The function set_timeout(uint32_t timeout) didn't return and rather fell through into the
implementation of
which crashed, because the function accessed random parameter values.
The text was updated successfully, but these errors were encountered:
dac1e
changed the title
0239-WHD-add-join-timeout-parameter-to-WiFiSTAInterface-a.patch has a bug.
WhdSTAInterface::set_timeout(_timeout) crashes: 0239-WHD-add-join-timeout-parameter-to-WiFiSTAInterface-a.patch has a bug.
Dec 24, 2024
0239-WHD-add-join-timeout-parameter-to-WiFiSTAInterface-a.patch has a bug.
This patch introduced the override of a new function 'nsapi_error_t set_timeout(uint32_t timeout)'.
The function in the patch file has no return value and looks as follows:
nsapi_error_t set_timeout(uint32_t timeout)
{
_timeout = timeout;
}
It should look as follows:
nsapi_error_t set_timeout(uint32_t timeout)
{
_timeout = timeout;
return NSAPI_ERROR_OK;
}
When I run the WifiAdvanceChatServer example on Arduino Giga, the function call
wifi_if->set_timeout(_timeout);
in line 78 of library file Wifi.cpp crashed.
The function set_timeout(uint32_t timeout) didn't return and rather fell through into the
implementation of
nsapi_error_t WhdSTAInterface::connect(
const char *ssid, const char *pass,
nsapi_security_t security,
uint8_t channel)
which crashed, because the function accessed random parameter values.
The text was updated successfully, but these errors were encountered: