michallenc commented on code in PR #13584: URL: https://github.com/apache/nuttx/pull/13584#discussion_r1777348693
########## fs/smartfs/smartfs_smart.c: ########## @@ -210,13 +212,20 @@ static int smartfs_open(FAR struct file *filep, FAR const char *relpath, /* Locate the directory entry for this path */ - sf = kmm_malloc(sizeof *sf); + pathlen = strlen(relpath) + 1; + sf = kmm_malloc(sizeof(*sf) + pathlen); Review Comment: Substracted -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
