mirror of
https://github.com/openharmony/third_party_NuttX.git
synced 2026-07-01 08:17:34 -04:00
Description: 门禁告警清理
IssueNo: ICRXNL Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: y30015170 <1169998606@qq.com>
This commit is contained in:
@@ -111,6 +111,11 @@ int do_symlink(const char *target, int newfd, const char *path)
|
||||
goto errout;
|
||||
}
|
||||
|
||||
if (target == NULL)
|
||||
{
|
||||
goto errout;
|
||||
}
|
||||
|
||||
if (strlen(target) >= PATH_MAX)
|
||||
{
|
||||
ret = -ENAMETOOLONG;
|
||||
|
||||
Reference in New Issue
Block a user