From 63856cad29b87348db04102190de5d1d45d03a7e Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 4 Jun 2016 09:38:12 +0100 Subject: [PATCH] ringct: add check for destinations/amount size being equal --- src/ringct/rctSigs.cpp | 1 + 1 file changed, 1 insertion(+) 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());