aboutsummaryrefslogtreecommitdiff
path: root/src/ringct/rctSigs.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-06-04 09:38:12 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-28 21:28:07 +0100
commit63856cad29b87348db04102190de5d1d45d03a7e (patch)
tree1df5ca950783ceb41aef4f84aabce8279e8d49d6 /src/ringct/rctSigs.cpp
parentringct: fix off by 1 in mixin usage (diff)
downloadmonero-63856cad29b87348db04102190de5d1d45d03a7e.tar.xz
ringct: add check for destinations/amount size being equal
Diffstat (limited to '')
-rw-r--r--src/ringct/rctSigs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ringct/rctSigs.cpp b/src/ringct/rctSigs.cpp
index 351b615d9..9e2fa8cd6 100644
--- a/src/ringct/rctSigs.cpp
+++ b/src/ringct/rctSigs.cpp
@@ -470,6 +470,7 @@ namespace rct {
CHECK_AND_ASSERT_THROW_MES(mixin >= 0, "Mixin must be positive");
CHECK_AND_ASSERT_THROW_MES(amounts.size() > 0, "Amounts must not be empty");
CHECK_AND_ASSERT_THROW_MES(inSk.size() == inPk.size(), "Different number of public/private keys");
+ CHECK_AND_ASSERT_THROW_MES(amounts.size() == destinations.size(), "Different number of amounts/destinations");
rctSig rv;
rv.outPk.resize(destinations.size());