mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 10:42:29 +00:00
stop parsing HTTP header if next line is too long
This commit is contained in:
1 parent
6858bc62ca
commit
51f5fa9a45
1 file changed
+6
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user