diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-20 17:25:21 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-20 17:25:21 +0000 |
commit | 73e8a76d86f75363197d5ae9f384e0606ad47a19 (patch) | |
tree | 749c4f365ce4c13bcc0ab05658c6e8767cad81d6 /tests | |
parent | Merge pull request #1346 (diff) | |
download | monero-73e8a76d86f75363197d5ae9f384e0606ad47a19.tar.xz |
tests: fix uninitialized data valgrind reports in serialization tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_tests/serialization.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit_tests/serialization.cpp b/tests/unit_tests/serialization.cpp index dc7f7cb06..b592f456b 100644 --- a/tests/unit_tests/serialization.cpp +++ b/tests/unit_tests/serialization.cpp @@ -395,7 +395,10 @@ TEST(Serialization, serializes_transacion_signatures_correctly) // Not enough signature vectors for all inputs txin_to_key txin_to_key1; - txin_to_key1.key_offsets.resize(2); + txin_to_key1.amount = 1; + memset(&txin_to_key1.k_image, 0x42, sizeof(crypto::key_image)); + txin_to_key1.key_offsets.push_back(12); + txin_to_key1.key_offsets.push_back(3453); tx.vin.clear(); tx.vin.push_back(txin_to_key1); tx.vin.push_back(txin_to_key1); |