mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibWeb: Prevent infinite loop in create_an_inheritance_stack
This would continually loop on the same interface. Co-authored-by: Matthew Olsson <matthewcolsson@gmail.com>
This commit is contained in:
parent
116c1f835d
commit
e8fe7c0ee3
Notes:
sideshowbarker
2024-07-18 02:43:53 +09:00
Author: https://github.com/jamierocks Commit: https://github.com/LadybirdBrowser/ladybird/commit/e8fe7c0ee3a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/682 Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 2 additions and 0 deletions
|
@ -2786,6 +2786,8 @@ static Vector<Interface const&> create_an_inheritance_stack(IDL::Interface const
|
|||
|
||||
// 2. Push I onto stack.
|
||||
inheritance_chain.append(*imported_interface_iterator);
|
||||
|
||||
current_interface = &*imported_interface_iterator;
|
||||
}
|
||||
|
||||
// 4. Return stack.
|
||||
|
|
Loading…
Add table
Reference in a new issue