aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-31 16:51:59 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2021-01-03 14:07:45 +0000
commitb652d598d1ed3215150e970dae9673db96c3e39d (patch)
treea22bdfdc6a465801368931d4e08c46315ae1f764 /tests/fuzz
parentMerge pull request #7250 (diff)
downloadmonero-b652d598d1ed3215150e970dae9673db96c3e39d.tar.xz
add a max levin packet size by command type
Diffstat (limited to '')
-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;