kernel: Properly check memory bounds in strdup_from_user()
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Missed this one in 097353e779
.
This commit is contained in:
parent
2e63b93e48
commit
7c254e5e15
@ -508,7 +508,7 @@ namespace MemoryManager
|
||||
{
|
||||
TRY(result.try_append(*(char*)address));
|
||||
address++;
|
||||
if (address % ARCH_PAGE_SIZE)
|
||||
if ((address % ARCH_PAGE_SIZE) == 0)
|
||||
{
|
||||
if (!validate_page_access(address, MMU::User)) return err(EFAULT);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user