mirror of
https://github.com/monero-project/monero.git
synced 2025-05-22 04:31:10 -04:00
add a sanity check to RPC input data size
reported by m31007
This commit is contained in:
parent
9f814edbd7
commit
9209880e9c
4 changed files with 15 additions and 0 deletions
|
@ -55,6 +55,7 @@ namespace net_utils
|
|||
std::string m_folder;
|
||||
std::vector<std::string> m_access_control_origins;
|
||||
boost::optional<login> m_user;
|
||||
size_t m_max_content_length{std::numeric_limits<size_t>::max()};
|
||||
critical_section m_lock;
|
||||
};
|
||||
|
||||
|
@ -141,6 +142,7 @@ namespace net_utils
|
|||
config_type& m_config;
|
||||
bool m_want_close;
|
||||
size_t m_newlines;
|
||||
size_t m_bytes_read;
|
||||
protected:
|
||||
i_service_endpoint* m_psnd_hndlr;
|
||||
t_connection_context& m_conn_context;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue