aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarris <brakmic@gmail.com>2020-05-08 20:21:48 +0200
committerHarris <brakmic@gmail.com>2020-05-08 20:21:48 +0200
commit095bc9a10691505c3d0fdacb6caeb62bfdcf1732 (patch)
tree8c83ff55782c2e120aa3565f2591a0bbb2f65288 /src
parent5b24f6084ede92d0f493ff416b4726245140b2c1 (diff)
fuzz: fix vector size problem in system fuzzer
Co-authored-by: Pieter Wuille <pieter.wuille@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/test/fuzz/system.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/system.cpp b/src/test/fuzz/system.cpp
index 7f378c2b13..01b523cee4 100644
--- a/src/test/fuzz/system.cpp
+++ b/src/test/fuzz/system.cpp
@@ -85,7 +85,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
case 7: {
const std::vector<std::string> random_arguments = ConsumeRandomLengthStringVector(fuzzed_data_provider);
std::vector<const char*> argv;
- argv.resize(random_arguments.size());
+ argv.reserve(random_arguments.size());
for (const std::string& random_argument : random_arguments) {
argv.push_back(random_argument.c_str());
}