Skip to content

Commit

Permalink
Fix fuzzers accidentally hogging up more memory than necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
eliaskosunen committed May 23, 2024
1 parent f2546e3 commit bc54cde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/fuzz/fuzz.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const auto& populate_noncontiguous(Source& source)
{
using char_type = ranges::range_value_t<Source>;
auto& deque = get_noncontiguous_buffer<char_type>();
deque.clear();
std::copy(ranges::begin(source), ranges::end(source),
std::back_inserter(deque));
return deque;
Expand Down

0 comments on commit bc54cde

Please sign in to comment.