Skip to content

Commit

Permalink
improve function names
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldreik committed Jun 9, 2019
1 parent 641bf36 commit 7b8fd7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fuzzing/sprintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
constexpr auto Nmax = std::max(sizeof(long double), sizeof(std::intmax_t));

template <typename Item1, typename Item2>
void doit(const uint8_t* Data, std::size_t Size) {
void invoke_fmt(const uint8_t* Data, std::size_t Size) {
const auto N1 = sizeof(Item1);
const auto N2 = sizeof(Item2);
static_assert(N1 <= Nmax, "size1 exceeded");
Expand Down Expand Up @@ -114,7 +114,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, std::size_t Size) {
auto inner = [=](auto param2) {
// std::cout<<"invoked with param1="<<sizeof(param1)<<"
// param2="<<sizeof(param2)<<'\n';
doit<decltype(param1), decltype(param2)>(Data, Size);
invoke_fmt<decltype(param1), decltype(param2)>(Data, Size);
};
invoke(second, inner);
};
Expand Down

0 comments on commit 7b8fd7f

Please sign in to comment.