This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit ec1c5f92739e8ec15751cfb04be11c057a96e594
Author: Petro Karashchenko <[email protected]>
AuthorDate: Sun Oct 23 12:07:54 2022 +0200

    Revert "Revert "nshlib: fix possible out of bounds array access""
    
    This reverts commit fe4b44e3ff27220b4f1abf5d46cdc29dc1afa64d.
---
 nshlib/nsh_fsutils.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/nshlib/nsh_fsutils.c b/nshlib/nsh_fsutils.c
index 2f88549c5..c9b50710c 100644
--- a/nshlib/nsh_fsutils.c
+++ b/nshlib/nsh_fsutils.c
@@ -513,7 +513,6 @@ FAR char *nsh_getdirpath(FAR struct nsh_vtbl_s *vtbl,
       snprintf(vtbl->iobuffer, IOBUFFERSIZE, "%s/%s", dirpath, path);
     }
 
-  vtbl->iobuffer[PATH_MAX] = '\0';
   return strdup(vtbl->iobuffer);
 }
 #endif

Reply via email to