Merge #21407: i2p: limit the size of incoming messages
pull/826/head7059e6d822
test: add a test to ensure RecvUntilTerminator() limit works (Vasil Dimov)80a5a8ea2b
i2p: limit the size of incoming messages (Vasil Dimov) Pull request description: Put a limit on the amount of data `Sock::RecvUntilTerminator()` can read if no terminator is received. In the case of I2P this avoids a runaway (or malicious) I2P proxy sending us tons of data without a terminator before a timeout is triggered. ACKs for top commit: laanwj: Re-ACK7059e6d822
Tree-SHA512: 21f3f3468c765c726cdc877eae847cdb4dbe225d94c5bd1849bd752c9761fac881c554f16ea7a685ad40312159d554e126c481e21c5fd83a6d947060b920373d
commit
1b6c463e03
Loading…
Reference in new issue