mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
Kernel: Handle mmap requests on zero-length data file inodes safely
This commit is contained in:
parent
c88cc8557f
commit
3ad0e1a1d5
Notes:
sideshowbarker
2024-07-17 07:07:05 +09:00
Author: https://github.com/supercomputer7
Commit: 3ad0e1a1d5
Pull-request: https://github.com/SerenityOS/serenity/pull/14785
Reviewed-by: https://github.com/IdanHo ✅
5 changed files with 28 additions and 5 deletions
|
@ -16,6 +16,7 @@ class SharedInodeVMObject final : public InodeVMObject {
|
|||
|
||||
public:
|
||||
static ErrorOr<NonnullLockRefPtr<SharedInodeVMObject>> try_create_with_inode(Inode&);
|
||||
static ErrorOr<NonnullLockRefPtr<SharedInodeVMObject>> try_create_with_inode_and_range(Inode&, u64 offset, size_t range_size);
|
||||
virtual ErrorOr<NonnullLockRefPtr<VMObject>> try_clone() override;
|
||||
|
||||
ErrorOr<void> sync(off_t offset_in_pages = 0, size_t pages = -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue