From afbd8024110aaa80a7b94cff9a9d96e763b13916 Mon Sep 17 00:00:00 2001 From: hop311 Date: Mon, 22 Jan 2024 16:32:18 +0000 Subject: Fixed BasicParser::_file_path relying on externally controlled memory --- src/openvic-dataloader/detail/LexyReportError.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/openvic-dataloader/detail/LexyReportError.hpp') diff --git a/src/openvic-dataloader/detail/LexyReportError.hpp b/src/openvic-dataloader/detail/LexyReportError.hpp index 9629963..213090b 100644 --- a/src/openvic-dataloader/detail/LexyReportError.hpp +++ b/src/openvic-dataloader/detail/LexyReportError.hpp @@ -7,6 +7,7 @@ #include #include +#include #include #include @@ -85,6 +86,10 @@ namespace ovdl::detail { return { _iter, _opts, path }; } + constexpr _ReportError path(const detail::Has_c_str auto& path_object) const { + return path(path_object.c_str()); + } + /// Specifies an output iterator where the errors are written to. template constexpr _ReportError to(OI out) const { -- cgit v1.2.3-56-ga3b1