From 61b6e4cc67abd61a0dbffe271ee3f355b2e772bc Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Tue, 29 Dec 2020 19:58:53 -0500 Subject: Add aggressive restrictions to pre-handshake p2p buffer limit --- tests/fuzz/levin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/fuzz') diff --git a/tests/fuzz/levin.cpp b/tests/fuzz/levin.cpp index b090c350b..079ea7dae 100644 --- a/tests/fuzz/levin.cpp +++ b/tests/fuzz/levin.cpp @@ -52,6 +52,8 @@ namespace struct test_levin_connection_context : public epee::net_utils::connection_context_base { + static constexpr int handshake_command() noexcept { return 1001; } + static constexpr bool handshake_complete() noexcept { return true; } }; typedef epee::levin::async_protocol_handler_config test_levin_protocol_handler_config; -- cgit v1.2.3