Skip to content

Commit c8816a5

Browse files
committed
fix(Report): do not attempt to format logs without parameters
This leads to segmentation faults when the string contains reserved sequences.
1 parent 1da73f8 commit c8816a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/mrdocs/Support/Report.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ log_impl(
184184
Level level,
185185
Located<std::string_view> fs)
186186
{
187-
std::string str = std::vformat(fs.value, std::make_format_args());
187+
std::string str(fs.value);
188188
return print(level, str, &fs.where);
189189
}
190190
}

0 commit comments

Comments
 (0)