nuttx-apps/netutils/ftpc
Nightt c44f9a0556 apps: Fix unchecked strdup()/asprintf() as requested in #1727
Add missing failure handling for direct strdup() and asprintf() calls where the allocated result is consumed locally before any NULL/error check.

This keeps the scope to the functions named in #1727 and avoids changing pass-through return sites where callers already receive NULL on allocation failure.

Signed-off-by: Nightt <87569709+nightt5879@users.noreply.github.com>
2026-05-23 16:30:52 -04:00
..
CMakeLists.txt netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_cdup.c netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_chdir.c netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_chmod.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
ftpc_cmd.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
ftpc_config.h netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_connect.c apps: Fix unchecked strdup()/asprintf() as requested in #1727 2026-05-23 16:30:52 -04:00
ftpc_disconnect.c netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_filesize.c netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_filetime.c netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_getfile.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
ftpc_getreply.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
ftpc_help.c netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_idle.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
ftpc_internal.h netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_listdir.c apps: Fix unchecked strdup()/asprintf() as requested in #1727 2026-05-23 16:30:52 -04:00
ftpc_login.c apps: Fix unchecked strdup()/asprintf() as requested in #1727 2026-05-23 16:30:52 -04:00
ftpc_mkdir.c netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_noop.c netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_putfile.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
ftpc_quit.c netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_rename.c netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_response.c netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_rmdir.c netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_rpwd.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
ftpc_socket.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
ftpc_transfer.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
ftpc_unlink.c netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
ftpc_utils.c netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
Kconfig netutils/ftpc: implemented FTPC_OVER_SENDFILE option. 2022-01-20 14:16:01 +08:00
Make.defs netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
Makefile netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00