diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-01-25 20:17:49 +0200 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2022-01-25 22:41:17 +0200 |
commit | 9ce537d7036bf4aff61d4ce10e7fe0b134c122b3 (patch) | |
tree | 3dc45992db0acbfad56c0555821909432a1f86cd /Kernel/Graphics | |
parent | 0c630d568721f1efba2d5c0ee72c52c08b43d6e8 (diff) | |
download | serenity-9ce537d7036bf4aff61d4ce10e7fe0b134c122b3.zip |
Kernel: Use u64 instead of size_t for File::can_read offset
This ensures offsets will not be truncated on large files on i686.
Diffstat (limited to 'Kernel/Graphics')
-rw-r--r-- | Kernel/Graphics/GenericFramebufferDevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Graphics/GenericFramebufferDevice.h b/Kernel/Graphics/GenericFramebufferDevice.h index ccf549a282..197bea761d 100644 --- a/Kernel/Graphics/GenericFramebufferDevice.h +++ b/Kernel/Graphics/GenericFramebufferDevice.h @@ -33,7 +33,7 @@ public: private: // ^File - virtual bool can_read(const OpenFileDescription&, size_t) const override final { return true; } + virtual bool can_read(const OpenFileDescription&, u64) const override final { return true; } virtual bool can_write(const OpenFileDescription&, size_t) const override final { return true; } virtual void start_request(AsyncBlockDeviceRequest& request) override final { request.complete(AsyncDeviceRequest::Failure); } virtual ErrorOr<size_t> read(OpenFileDescription&, u64, UserOrKernelBuffer&, size_t) override { return EINVAL; } |