mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibIDL: Fix use-after-free in GenerateWindowOrWorkerInterfaces
`lexical_bases` was storing `StringView`s into `ByteString`s returned from `LexicalPath::string()` that might no longer exist.
This commit is contained in:
committed by
Andreas Kling
parent
63873f3809
commit
c3783cf3bd
@@ -1250,7 +1250,7 @@ Interface& Parser::parse()
|
||||
return interface;
|
||||
}
|
||||
|
||||
Parser::Parser(ByteString filename, StringView contents, Vector<StringView> import_base_paths)
|
||||
Parser::Parser(ByteString filename, StringView contents, Vector<ByteString> import_base_paths)
|
||||
: import_base_paths(move(import_base_paths))
|
||||
, filename(move(filename))
|
||||
, input(contents)
|
||||
@@ -1258,7 +1258,7 @@ Parser::Parser(ByteString filename, StringView contents, Vector<StringView> impo
|
||||
{
|
||||
}
|
||||
|
||||
Parser::Parser(Parser* parent, ByteString filename, StringView contents, Vector<StringView> import_base_paths)
|
||||
Parser::Parser(Parser* parent, ByteString filename, StringView contents, Vector<ByteString> import_base_paths)
|
||||
: import_base_paths(move(import_base_paths))
|
||||
, filename(move(filename))
|
||||
, input(contents)
|
||||
|
||||
Reference in New Issue
Block a user