Description: syscall SysExecve 执行漏洞修复
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IALXZ5 Feature Or Bugfix: Bugfix Binary Source: No Signed-off-by: hw_llm <liu.limin@huawei.com>
This commit is contained in:
parent
b22a7c266e
commit
a058649c93
|
@ -641,6 +641,9 @@ OUT:
|
|||
#ifdef LOSCFG_KERNEL_DYNLOAD
|
||||
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);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue