aboutsummaryrefslogtreecommitdiff
path: root/src/ringct/bulletproofs.cc
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-12-26 13:36:01 -0800
committerAlexander Blair <snipa@jagtech.io>2020-12-26 13:36:01 -0800
commitb9e444da5eee2dc2084d917dc9fd179c9bf33a3b (patch)
treed4f9f703164ad52a08c76e9c1db51559ab3bfe9b /src/ringct/bulletproofs.cc
parentMerge pull request #7086 (diff)
parentFixed issues found by static analysis (diff)
downloadmonero-b9e444da5eee2dc2084d917dc9fd179c9bf33a3b.tar.xz
Merge pull request #7098
c0c75ac19 Fixed issues found by static analysis (SChernykh)
Diffstat (limited to 'src/ringct/bulletproofs.cc')
-rw-r--r--src/ringct/bulletproofs.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ringct/bulletproofs.cc b/src/ringct/bulletproofs.cc
index 359dfa879..a6e12c9b3 100644
--- a/src/ringct/bulletproofs.cc
+++ b/src/ringct/bulletproofs.cc
@@ -826,7 +826,7 @@ bool bulletproof_VERIFY(const std::vector<const Bulletproof*> &proofs)
proof_data.reserve(proofs.size());
size_t inv_offset = 0;
std::vector<rct::key> to_invert;
- to_invert.reserve(11 * sizeof(proofs));
+ to_invert.reserve(11 * proofs.size());
size_t max_logM = 0;
for (const Bulletproof *p: proofs)
{