diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-06-10 12:00:54 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-06-10 12:00:54 -0500 |
| commit | 7499837a6fe8d3533e1360dce8f3ba230ff76042 (patch) | |
| tree | cd3e089e2e09de33044220ff72461a761b028e3f /tests/fuzz/bulletproof.cpp | |
| parent | ca732849515d1e01147ded7db05defdb5518b13b (diff) | |
| parent | 08e4497c6e3b3f434c0bb255c3942648f153fe66 (diff) | |
| download | monzero-core-7499837a6fe8d3533e1360dce8f3ba230ff76042.tar.gz monzero-core-7499837a6fe8d3533e1360dce8f3ba230ff76042.tar.xz monzero-core-7499837a6fe8d3533e1360dce8f3ba230ff76042.zip | |
Merge pull request #7661
08e4497 Improve cryptonote (block and tx) binary read performance (Lee Clagett)
Diffstat (limited to 'tests/fuzz/bulletproof.cpp')
| -rw-r--r-- | tests/fuzz/bulletproof.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/fuzz/bulletproof.cpp b/tests/fuzz/bulletproof.cpp index e0f183bc5..06416fe34 100644 --- a/tests/fuzz/bulletproof.cpp +++ b/tests/fuzz/bulletproof.cpp @@ -37,9 +37,7 @@ BEGIN_INIT_SIMPLE_FUZZER() END_INIT_SIMPLE_FUZZER() BEGIN_SIMPLE_FUZZER() - std::stringstream ss; - ss << std::string((const char*)buf, len); - binary_archive<false> ba(ss); + binary_archive<false> ba{{buf, len}}; rct::Bulletproof proof = AUTO_VAL_INIT(proof); ::serialization::serialize(ba, proof); END_SIMPLE_FUZZER() |
