STM32CubeWL
STM32CubeWL copied to clipboard
lora_app.c: Wrong logic operator in sanity check in OnRxData function.
Sanity check in OnRxData function uses the wrong logic operator, should be && + AppData has a Buffer, pointer member in the struct which can be NULL, and it is not checked.
static void OnRxData(LmHandlerAppData_t *appData, LmHandlerRxParams_t *params)
{
/* USER CODE BEGIN OnRxData_1 */
if ((appData != NULL) || (params != NULL))
....
ST Internal Reference: 117554