From 8c4c8d36de39d2d0d175cb62421324c71755fa4f Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Tue, 15 Apr 2025 15:38:20 +0000 Subject: [PATCH] fix(kernel/std): ensure null termination after removing elements in std::string::erase --- Kernel/include_std/string | 1 + 1 file changed, 1 insertion(+) diff --git a/Kernel/include_std/string b/Kernel/include_std/string index 2137f5dc..ae648f69 100644 --- a/Kernel/include_std/string +++ b/Kernel/include_std/string @@ -1579,6 +1579,7 @@ namespace std { std::copy(begin() + index + count, end(), begin() + index); _size -= count; + _data[_size] = '\0'; } return *this;