mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 11:55:08 +00:00
Kernel: Zero-length dbgputstr() should just return 0
This commit is contained in:
parent
2c947a2c97
commit
a720061423
1 changed files with 2 additions and 0 deletions
|
@ -2831,6 +2831,8 @@ int Process::sys$dbgputch(u8 ch)
|
|||
|
||||
int Process::sys$dbgputstr(const u8* characters, int length)
|
||||
{
|
||||
if (!length)
|
||||
return 0;
|
||||
if (!validate_read(characters, length))
|
||||
return -EFAULT;
|
||||
for (int i = 0; i < length; ++i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue