From 9209880e9cd90762f344dbfeb3464c9f7e758a4b Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 16 Mar 2022 22:16:52 +0000 Subject: add a sanity check to RPC input data size reported by m31007 --- src/cryptonote_config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cryptonote_config.h') 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 -- cgit v1.2.3