add a sanity check to RPC input data size

reported by m31007
This commit is contained in:
moneromooo-monero
2022-04-21 22:22:56 +00:00
parent 9f814edbd7
commit 9209880e9c
4 changed files with 15 additions and 0 deletions
+2
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