mirror of
https://github.com/monero-project/monero.git
synced 2026-01-21 03:53:19 +01:00
add a sanity check to RPC input data size
reported by m31007
This commit is contained in:
@@ -344,6 +344,8 @@ namespace cryptonote
|
||||
if (m_rpc_payment)
|
||||
m_net_server.add_idle_handler([this](){ return m_rpc_payment->on_idle(); }, 60 * 1000);
|
||||
|
||||
m_net_server.get_config_object().m_max_content_length = MAX_RPC_CONTENT_LENGTH;
|
||||
|
||||
auto rng = [](size_t len, uint8_t *ptr){ return crypto::rand(len, ptr); };
|
||||
return epee::http_server_impl_base<core_rpc_server, connection_context>::init(
|
||||
rng, std::move(port), std::move(bind_ip_str),
|
||||
|
||||
Reference in New Issue
Block a user