aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-02-02 15:56:44 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-02-02 15:56:44 +0000
commitfa6b45665d6e7cab39c9c2f65f0f802f79003b95 (patch)
tree2f0b7e20845feb37d3f3639acb0e1461e157d093 /tests
parentkeccak: fix sanity check bounds test (diff)
downloadmonero-fa6b45665d6e7cab39c9c2f65f0f802f79003b95.tar.xz
fuzz_tests: fix an uninitialized var in setup
and comment it out, it's only used to generate a starting test case Coverity 182506
Diffstat (limited to 'tests')
-rw-r--r--tests/fuzz/levin.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/fuzz/levin.cpp b/tests/fuzz/levin.cpp
index 2c3971470..6a164dda9 100644
--- a/tests/fuzz/levin.cpp
+++ b/tests/fuzz/levin.cpp
@@ -299,7 +299,7 @@ int LevinFuzzer::run(const std::string &filename)
{
std::string s;
-//
+#if 0
epee::levin::bucket_head2 req_head;
req_head.m_signature = LEVIN_SIGNATURE;
req_head.m_cb = 0;
@@ -307,10 +307,11 @@ int LevinFuzzer::run(const std::string &filename)
req_head.m_command = 2000;
req_head.m_flags = LEVIN_PACKET_REQUEST;
req_head.m_protocol_version = LEVIN_PROTOCOL_VER_1;
+ req_head.m_return_code = 0;
FILE *f=fopen("/tmp/out.levin", "w");
fwrite(&req_head,sizeof(req_head),1, f);
fclose(f);
-//
+#endif
if (!epee::file_io_utils::load_file_to_string(filename, s))
{
std::cout << "Error: failed to load file " << filename << std::endl;