mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add a 1 MB payload limit to incoming websocket requests
This commit is contained in:
@@ -42,7 +42,8 @@ std::string RPCServerHandler::processRequest (std::string const& request, std::s
|
||||
{
|
||||
Json::Reader reader;
|
||||
|
||||
if (! reader.parse (request, jvRequest) ||
|
||||
if ((request.size() > 1000000) ||
|
||||
! reader.parse (request, jvRequest) ||
|
||||
jvRequest.isNull () ||
|
||||
! jvRequest.isObject ())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user