diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-06-17 21:28:56 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-08-28 21:28:41 +0100 |
commit | 359f46901ee5c46fe125248ccb769fe27188a61a (patch) | |
tree | 306880f4a7134318731e2e7a02cb7165a6b65ed3 /src/ringct | |
parent | ringct: change asserts to return false for boolean functions (diff) | |
download | monero-359f46901ee5c46fe125248ccb769fe27188a61a.tar.xz |
ringct: add missing size check for ecdhInfo
Diffstat (limited to 'src/ringct')
-rw-r--r-- | src/ringct/rctSigs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ringct/rctSigs.cpp b/src/ringct/rctSigs.cpp index 5e4d7baae..89adb2a77 100644 --- a/src/ringct/rctSigs.cpp +++ b/src/ringct/rctSigs.cpp @@ -536,6 +536,7 @@ namespace rct { // must know the destination private key to find the correct amount, else will return a random number bool verRct(const rctSig & rv) { CHECK_AND_ASSERT_MES(rv.outPk.size() == rv.rangeSigs.size(), false, "Mismatched sizes of rv.outPk and rv.rangeSigs"); + CHECK_AND_ASSERT_MES(rv.outPk.size() == rv.ecdhInfo.size(), false, "Mismatched sizes of rv.outPk and rv.ecdhInfo"); // some rct ops can throw try |