From 2d9661790db30eb169d07d36b485943c598253b9 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 7 Jun 2022 20:18:20 +0200 Subject: fix: prevent statusline heap buffer overflow --- src/engine/components/statusline.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/engine/components/statusline.hpp') diff --git a/src/engine/components/statusline.hpp b/src/engine/components/statusline.hpp index 3fdb8d3..8c1969b 100644 --- a/src/engine/components/statusline.hpp +++ b/src/engine/components/statusline.hpp @@ -38,6 +38,9 @@ private: std::unordered_map _section_lengths; bool _need_render; + void + _matrix_write_string(const Vector2 &position, const std::string_view &str) noexcept; + [[nodiscard]] auto _get_section_start_x(StatusLineSection section) const noexcept -> int32_t; -- cgit v1.2.3-18-g5258