nuttx-apps/wireless/wapi/src
lipengfei28 f15ed311c0 wapi_json_load: the buf need add null character
sched_backtrace+0xd4/0xfffffffffff444e0
sched_dumpstack+0x5c/0xc50a0
_assert+0x1a0/0x11cf380
__assert+0x28/0x4ebd70
kasan_report+0x280/0x5b0
__asan_loadN+0x234/0xfffffffffffffac0
strlen+0x3c/0x838410
cJSON_Parse+0x38/0x1d0
wapi_json_load+0xc4/0x1c0
wapi_load_config+0x50/0x110600
netinit_associate+0x34/0xfffffffffffffe70
netinit_thread+0xbc/0x18ad0
pthread_startup+0x34/0x11660a0
pthread_start+0x84/0xfffffffffeea2520

If the buf no null character, the strlen acces buf maybe out of bounds

Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-11 19:26:44 +08:00
..
driver_wext.c wapi: Fix disconnect crash. 2023-10-25 14:58:41 +03:00
Make.defs apps/wireless/wapi/src/Make.defs: fix nxstyle 2023-03-24 15:04:43 -03:00
network.c wapi: fix coverity warning 2022-08-15 22:27:59 +08:00
util.c wapi_json_load: the buf need add null character 2024-10-11 19:26:44 +08:00
util.h wireless/wapi:rework wapi error print in util.h 2023-01-14 14:01:28 +08:00
wapi.c [wireless][wapi] add powersave cmd of wapi for Low-power modules 2024-09-12 12:43:52 +08:00
wireless.c [wireless] add set/get pmksa api for fast-auth 2024-09-12 12:43:52 +08:00