Pre Merge pull request !1215 from hw_llm/master

This commit is contained in:
hw_llm 2024-08-23 02:29:31 +00:00 committed by Gitee
commit 6b8c2e855a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 0 deletions

View File

@ -641,6 +641,9 @@ OUT:
#ifdef LOSCFG_KERNEL_DYNLOAD #ifdef LOSCFG_KERNEL_DYNLOAD
int SysExecve(const char *fileName, char *const *argv, char *const *envp) int SysExecve(const char *fileName, char *const *argv, char *const *envp)
{ {
if (!LOS_IsUserAddress((vaddr_t)(UINTPTR)fileName)) {
return -EFAULT;
}
return LOS_DoExecveFile(fileName, argv, envp); return LOS_DoExecveFile(fileName, argv, envp);
} }
#endif #endif