mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
Kernel: Implement recursion limit on path resolution
Cautiously use 5 as a limit for now so that we don't blow the stack. This can be increased in the future if we are sure that we won't be blowing the stack, or if the implementation is changed to not use recursion :^)
This commit is contained in:
committed by
Andreas Kling
parent
3623e35978
commit
0e45b9423b
Notes:
sideshowbarker
2024-07-19 10:42:15 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/0e45b9423b0 Pull-request: https://github.com/SerenityOS/serenity/pull/911 Reviewed-by: https://github.com/awesomekling
@@ -88,7 +88,7 @@ public:
|
||||
void sync();
|
||||
|
||||
Custody& root_custody();
|
||||
KResultOr<NonnullRefPtr<Custody>> resolve_path(StringView path, Custody& base, RefPtr<Custody>* parent = nullptr, int options = 0);
|
||||
KResultOr<NonnullRefPtr<Custody>> resolve_path(StringView path, Custody& base, RefPtr<Custody>* parent = nullptr, int options = 0, int symlink_recursion_level = 0);
|
||||
|
||||
private:
|
||||
friend class FileDescription;
|
||||
|
||||
Reference in New Issue
Block a user