mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
Kernel: Fail gracefully due to OOM on HashTable set in sys$setgroups
This commit is contained in:
parent
a9cd8ca841
commit
e23d320bb9
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ ErrorOr<FlatPtr> Process::sys$setgroups(size_t count, Userspace<const gid_t*> us
|
|||
HashTable<gid_t> unique_extra_gids;
|
||||
for (auto& extra_gid : new_extra_gids) {
|
||||
if (extra_gid != gid())
|
||||
unique_extra_gids.set(extra_gid);
|
||||
TRY(unique_extra_gids.try_set(extra_gid));
|
||||
}
|
||||
|
||||
ProtectedDataMutationScope scope { *this };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue