diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2022-03-16 22:16:52 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2022-04-21 22:22:56 +0000 |
commit | 9209880e9cd90762f344dbfeb3464c9f7e758a4b (patch) | |
tree | 1504f849571910ca3481d14b72ca89851ce545ea /contrib/epee/include/net/http_protocol_handler.h | |
parent | Merge pull request #8254 (diff) | |
download | monero-9209880e9cd90762f344dbfeb3464c9f7e758a4b.tar.xz |
add a sanity check to RPC input data size
reported by m31007
Diffstat (limited to 'contrib/epee/include/net/http_protocol_handler.h')
-rw-r--r-- | contrib/epee/include/net/http_protocol_handler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/epee/include/net/http_protocol_handler.h b/contrib/epee/include/net/http_protocol_handler.h index f68b2bc99..258b07e2c 100644 --- a/contrib/epee/include/net/http_protocol_handler.h +++ b/contrib/epee/include/net/http_protocol_handler.h @@ -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; |