Description: console read 漏洞修复
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IALLNX?from=project-issue Feature Or Bugfix: Feature Binary Source: No Signed-off-by: hw_llm <liu.limin@huawei.com>
This commit is contained in:
parent
2ac53f2c00
commit
b22a7c266e
|
@ -687,7 +687,7 @@ STATIC ssize_t ConsoleRead(struct file *filep, CHAR *buffer, size_t bufLen)
|
|||
}
|
||||
|
||||
if (userBuf) {
|
||||
if (LOS_ArchCopyToUser(buffer, sbuffer, bufLen) != 0) {
|
||||
if (LOS_ArchCopyToUser(buffer, sbuffer, ret) != 0) {
|
||||
ret = -EFAULT;
|
||||
goto ERROUT;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue