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:
Jamie Mansfield 2024-07-17 11:15:10 +01:00 committed by Tim Ledbetter
parent 116c1f835d
commit e8fe7c0ee3
Notes: sideshowbarker 2024-07-18 02:43:53 +09:00

View file

@ -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.