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 /src/cryptonote_config.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 'src/cryptonote_config.h')
-rw-r--r-- | src/cryptonote_config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h index 88316fd6a..84c5adcfe 100644 --- a/src/cryptonote_config.h +++ b/src/cryptonote_config.h @@ -126,6 +126,7 @@ #define COMMAND_RPC_GET_BLOCKS_FAST_MAX_BLOCK_COUNT 1000 #define COMMAND_RPC_GET_BLOCKS_FAST_MAX_TX_COUNT 20000 +#define MAX_RPC_CONTENT_LENGTH 1048576 // 1 MB #define P2P_LOCAL_WHITE_PEERLIST_LIMIT 1000 #define P2P_LOCAL_GRAY_PEERLIST_LIMIT 5000 |