aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2020-10-13 09:27:20 +0000
committerLee Clagett <code@leeclagett.com>2021-01-16 22:53:28 +0000
commit23aae5571b1aa7d28290b194189eac24dd3214c5 (patch)
tree2fbc3af1890bace6b01ba522950cbe0ea318d87d /tests/fuzz
parentMerge pull request #7399 (diff)
downloadmonero-23aae5571b1aa7d28290b194189eac24dd3214c5.tar.xz
Remove payload copy in all outgoing p2p messages
Diffstat (limited to 'tests/fuzz')
-rw-r--r--tests/fuzz/levin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fuzz/levin.cpp b/tests/fuzz/levin.cpp
index 78b7b6863..209a75221 100644
--- a/tests/fuzz/levin.cpp
+++ b/tests/fuzz/levin.cpp
@@ -68,13 +68,13 @@ namespace
{
}
- virtual int invoke(int command, const epee::span<const uint8_t> in_buff, epee::byte_slice& buff_out, test_levin_connection_context& context)
+ virtual int invoke(int command, const epee::span<const uint8_t> in_buff, epee::byte_stream& buff_out, test_levin_connection_context& context)
{
m_invoke_counter.inc();
boost::unique_lock<boost::mutex> lock(m_mutex);
m_last_command = command;
m_last_in_buf = std::string((const char*)in_buff.data(), in_buff.size());
- buff_out = m_invoke_out_buf.clone();
+ buff_out.write(epee::to_span(m_invoke_out_buf));
return m_return_code;
}