pkarashchenko commented on code in PR #1713: URL: https://github.com/apache/nuttx-apps/pull/1713#discussion_r1172945965
########## netutils/ftpc/ftpc_transfer.c: ########## @@ -264,7 +267,10 @@ static FAR char *ftpc_abspath(FAR struct ftpc_session_s *session, else if (strncmp(relpath, "./", 2) == 0) { - asprintf(&ptr, "%s%s", curdir, relpath + 1); + if (asprintf(&ptr, "%s%s", curdir, relpath + 1) < 0) + { + ptr = NULL; Review Comment: NULL-ed at line 224 ########## netutils/ftpc/ftpc_transfer.c: ########## @@ -278,7 +284,10 @@ static FAR char *ftpc_abspath(FAR struct ftpc_session_s *session, else { - asprintf(&ptr, "%s/%s", curdir, relpath); + if (asprintf(&ptr, "%s/%s", curdir, relpath) < 0) + { + ptr = NULL; Review Comment: Line 224 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org