File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
27
27
while (fuzzed_data_provider.remaining_bytes () > 0 ) {
28
28
switch (fuzzed_data_provider.ConsumeIntegralInRange (0 , 6 )) {
29
29
case 0 : {
30
- const std::vector<unsigned char >& b = ConsumeRandomLengthByteVector (fuzzed_data_provider);
30
+ const std::vector<unsigned char > b = ConsumeRandomLengthByteVector (fuzzed_data_provider);
31
31
(void )bloom_filter.contains (b);
32
32
bloom_filter.insert (b);
33
33
const bool present = bloom_filter.contains (b);
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
24
24
while (fuzzed_data_provider.remaining_bytes () > 0 ) {
25
25
switch (fuzzed_data_provider.ConsumeIntegralInRange (0 , 2 )) {
26
26
case 0 : {
27
- const std::vector<unsigned char >& b = ConsumeRandomLengthByteVector (fuzzed_data_provider);
27
+ const std::vector<unsigned char > b = ConsumeRandomLengthByteVector (fuzzed_data_provider);
28
28
(void )rolling_bloom_filter.contains (b);
29
29
rolling_bloom_filter.insert (b);
30
30
const bool present = rolling_bloom_filter.contains (b);
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ NODISCARD inline std::vector<uint8_t> ConsumeRandomLengthByteVector(FuzzedDataPr
27
27
template <typename T>
28
28
NODISCARD inline Optional<T> ConsumeDeserializable (FuzzedDataProvider& fuzzed_data_provider, size_t max_length = 4096 ) noexcept
29
29
{
30
- const std::vector<uint8_t >& buffer = ConsumeRandomLengthByteVector (fuzzed_data_provider, max_length);
30
+ const std::vector<uint8_t > buffer = ConsumeRandomLengthByteVector (fuzzed_data_provider, max_length);
31
31
CDataStream ds{buffer, SER_NETWORK, INIT_PROTO_VERSION};
32
32
T obj;
33
33
try {
You can’t perform that action at this time.
0 commit comments