diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-06 12:47:04 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-04-06 12:43:33 +0200 |
commit | 33333755f2edcbe88fcd136f6fef81f94819002e (patch) | |
tree | e2c74b184b881202c0542602bfb11d560ddd4c0a /src/test/fuzz/util.h | |
parent | 1a7dec77f610607b1f0c5113bd5b6939b04717df (diff) |
fuzz: Fix uninitialized read in test
Diffstat (limited to 'src/test/fuzz/util.h')
-rw-r--r-- | src/test/fuzz/util.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/test/fuzz/util.h b/src/test/fuzz/util.h index 50d3ac66e5..adcdd71748 100644 --- a/src/test/fuzz/util.h +++ b/src/test/fuzz/util.h @@ -738,12 +738,10 @@ public: return 0; } - bool Wait(std::chrono::milliseconds timeout, Event requested, Event* occurred = nullptr) const override - { - return m_fuzzed_data_provider.ConsumeBool(); - } + bool Wait(std::chrono::milliseconds timeout, Event requested, Event* occurred = nullptr) const override; - bool IsConnected(std::string& errmsg) const override { + bool IsConnected(std::string& errmsg) const override + { if (m_fuzzed_data_provider.ConsumeBool()) { return true; } |