mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Kernel: Zero-length dbgputstr() should just return 0
This commit is contained in:
parent
2c947a2c97
commit
a720061423
Notes:
sideshowbarker
2024-07-19 12:47:38 +09:00
Author: https://github.com/awesomekling
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