mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
LibCore+LibJS+LibWasm: Always use a real format string
It's generally considered a security issue to use non-format string literals. We would likely just crash in practice, but let's avoid the issue altogether.
This commit is contained in:
parent
cd72e788e9
commit
64d290447c
Notes:
github-actions[bot]
2025-04-09 00:01:33 +00:00
Author: https://github.com/trflynn89
Commit: 64d290447c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4286
3 changed files with 11 additions and 11 deletions
|
@ -154,7 +154,7 @@ ErrorOr<void> print_type(JS::PrintContext& print_context, StringView name)
|
|||
|
||||
ErrorOr<void> print_separator(JS::PrintContext& print_context, bool& first)
|
||||
{
|
||||
TRY(js_out(print_context, first ? " "sv : ", "sv));
|
||||
TRY(js_out(print_context, "{}", first ? " "sv : ", "sv));
|
||||
first = false;
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue