Skip to content

Commit

Permalink
update exception with a more accurate description
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldreik committed Jun 29, 2019
1 parent f3fbaf6 commit b9d6db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ It grisu_prettify(const char* digits, int size, int exp, It it,
*it++ = static_cast<Char>('.');
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
if (num_zeros > 1000) {
throw std::runtime_error("fuzz mode - avoiding excessive memory use");
throw std::runtime_error("fuzz mode - avoiding excessive cpu use");
}
#endif
it = std::fill_n(it, num_zeros, static_cast<Char>('0'));
Expand Down

0 comments on commit b9d6db5

Please sign in to comment.