diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 094daf6a417..195cc64aff0 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -2334,21 +2334,21 @@ pid_t Process::sys$waitpid(pid_t waitee, int* wstatus, int options) return waitee_pid; } -bool Process::validate_read_from_kernel(VirtualAddress vaddr, ssize_t size) const +bool Process::validate_read_from_kernel(VirtualAddress vaddr, size_t size) const { if (vaddr.is_null()) return false; return MM.validate_kernel_read(*this, vaddr, size); } -bool Process::validate_read(const void* address, ssize_t size) const +bool Process::validate_read(const void* address, size_t size) const { if (!size) return false; return MM.validate_user_read(*this, VirtualAddress(address), size); } -bool Process::validate_write(void* address, ssize_t size) const +bool Process::validate_write(void* address, size_t size) const { if (!size) return false; diff --git a/Kernel/Process.h b/Kernel/Process.h index 647c63cc809..0e05096c7fd 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -326,10 +326,10 @@ public: u32 m_ticks_in_user_for_dead_children { 0 }; u32 m_ticks_in_kernel_for_dead_children { 0 }; - bool validate_read_from_kernel(VirtualAddress, ssize_t) const; + bool validate_read_from_kernel(VirtualAddress, size_t) const; - bool validate_read(const void*, ssize_t) const; - bool validate_write(void*, ssize_t) const; + bool validate_read(const void*, size_t) const; + bool validate_write(void*, size_t) const; template bool validate_read_typed(T* value, size_t count = 1) { return validate_read(value, sizeof(T) * count); } template