Pre Merge pull request !1216 from hw_llm/cherry-pick-1724380306

This commit is contained in:
hw_llm 2024-08-23 02:32:35 +00:00 committed by Gitee
commit 861d9f61a4
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