add a sanity check to RPC input data size

reported by m31007
This commit is contained in:
moneromooo-monero 2022-03-16 22:16:52 +00:00
parent 9f814edbd7
commit 9209880e9c
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 15 additions and 0 deletions

View file

@ -365,6 +365,8 @@ namespace cryptonote
std::move(rpc_config->access_control_origins), std::move(http_login), std::move(rpc_config->ssl_options)
);
m_net_server.get_config_object().m_max_content_length = MAX_RPC_CONTENT_LENGTH;
if (store_ssl_key && inited)
{
// new keys were generated, store for next run