chore: fix more memory safety issues

This commit is contained in:
jpk68
2026-07-25 11:34:36 -04:00
parent 78fd1ec431
commit 247590afab
6 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -557,7 +557,7 @@ namespace http
if (c == '%')
{
decoded.append (url, start, i - start);
if (i + 2 <= url.length ())
if (i + 3 <= url.length ())
{
unsigned char ch;
auto res = std::from_chars(url.data() + i + 1, url.data() + i + 3, ch, 16);