Skip to content

Commit

Permalink
minimize source code pollution
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldreik committed Jun 28, 2019
1 parent 1ece641 commit eadee6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -1071,9 +1071,8 @@ It grisu_prettify(const char* digits, int size, int exp, It it,
if (params.trailing_zeros) {
*it++ = static_cast<Char>('.');
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
// avoid getting stuck here
if (num_zeros > 1000) {
throw std::runtime_error("fuzz mode - avoiding excessive memory");
throw std::runtime_error("fuzz mode - avoiding excessive memory use");
}
#endif
it = std::fill_n(it, num_zeros, static_cast<Char>('0'));
Expand Down

0 comments on commit eadee6e

Please sign in to comment.