aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2021-01-03 18:23:57 -0800
committerAlexander Blair <snipa@jagtech.io>2021-01-03 18:23:57 -0800
commit7264d648564f94ff57dee2bb398dcd3c4d1511d1 (patch)
tree07fd9dab90af51ab858e532a612cec08b08d2cf2 /tests/fuzz
parentMerge pull request #7261 (diff)
parentadd a max levin packet size by command type (diff)
downloadmonero-7264d648564f94ff57dee2bb398dcd3c4d1511d1.tar.xz
Merge pull request #7263
b652d598d add a max levin packet size by command type (moneromooo-monero)
Diffstat (limited to 'tests/fuzz')
-rw-r--r--tests/fuzz/levin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/fuzz/levin.cpp b/tests/fuzz/levin.cpp
index 079ea7dae..78b7b6863 100644
--- a/tests/fuzz/levin.cpp
+++ b/tests/fuzz/levin.cpp
@@ -54,6 +54,7 @@ namespace
{
static constexpr int handshake_command() noexcept { return 1001; }
static constexpr bool handshake_complete() noexcept { return true; }
+ size_t get_max_bytes(int command) const { return LEVIN_DEFAULT_MAX_PACKET_SIZE; }
};
typedef epee::levin::async_protocol_handler_config<test_levin_connection_context> test_levin_protocol_handler_config;