nuttx-apps/examples/wgetjson
Old-Ding 17b028e592 examples: wgetjson: check allocations before use
Several malloc() results in the wgetjson example were used before checking for allocation failure, which could crash low-memory paths before cleanup ran.

Return or propagate allocation errors before using the allocated buffers. Use explicit NULL comparisons for the new pointer checks to match review feedback.

Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>
2026-07-09 09:35:19 +08:00
..
webserver/wgetjson build: Remve the unnecessary .gitignore 2020-05-23 15:56:35 +01:00
CMakeLists.txt examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Kconfig examples/wgetjson/Kconfig: fix a typo 2020-09-30 08:22:16 +02:00
Make.defs examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
wgetjson_main.c examples: wgetjson: check allocations before use 2026-07-09 09:35:19 +08:00