stop parsing HTTP header if next line is too long

This commit is contained in:
orignal committed 2026-10-16 18:04:17 -04:00
1 parent 6858bc62ca
commit 51f5fa9a45
1 file changed
+6
+6
View File
@@ -423,6 +423,12 @@ namespace client
}
else
{
if (line.length () > I2P_TUNNEL_HTTP_MAX_HEADER_SIZE)
{
LogPrint (eLogError, "I2PTunnel: HTTP header line exceeds max size ", I2P_TUNNEL_HTTP_MAX_HEADER_SIZE);
Terminate ();
return;
}
// insert incomplete line back
m_InHeader.clear ();
m_InHeader << line;