mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:07:34 +00:00
Kernel/Ext2: Avoid overflow when updating UID and GID values
Previously, attempting to update an ext2 inode with a UID or GID larger than 65535 would overflow. We now write the high bits of UIDs and GIDs to the same place that Linux does within the `osd2` struct.
This commit is contained in:
parent
7e10f76021
commit
db929e0fcf
5 changed files with 47 additions and 7 deletions
|
@ -40,6 +40,7 @@ serenity_test("crash.cpp" Kernel MAIN_ALREADY_DEFINED)
|
|||
set(LIBTEST_BASED_SOURCES
|
||||
TestEmptyPrivateInodeVMObject.cpp
|
||||
TestEmptySharedInodeVMObject.cpp
|
||||
TestExt2FS.cpp
|
||||
TestInvalidUIDSet.cpp
|
||||
TestSharedInodeVMObject.cpp
|
||||
TestPosixFallocate.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue