mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-15 11:20:49 +00:00
chore: fix more memory safety issues
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user