Add another VALGRIND_MAKE_MEM_DEFINED.
authorCarl Hetherington <cth@carlh.net>
Thu, 28 Oct 2021 23:50:18 +0000 (01:50 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 28 Oct 2021 23:50:18 +0000 (01:50 +0200)
src/KM_prng.cpp

index a650eb84222692a4b78807650655780cab9de52f..94de208a924a053762426e0c09ac141a0adaf82e 100755 (executable)
@@ -214,6 +214,10 @@ Kumu::FortunaRNG::FillRandom(byte_t* buf, ui32_t len)
       s_RNG->set_key(rng_key);
   }
 
+#if HAVE_VALGRIND_MEMCHECK_H
+  VALGRIND_MAKE_MEM_DEFINED(buf, len);
+#endif
+
   return front_of_buffer;
 }