mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-28 13:19:48 +01:00
clang-format
This commit is contained in:
@@ -246,7 +246,8 @@ int format_float(char* buf, std::size_t size, const char* format, int precision,
|
||||
T value) {
|
||||
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
|
||||
if (precision > 100000) {
|
||||
throw std::runtime_error("fuzz mode - avoid large allocation inside snprintf");
|
||||
throw std::runtime_error(
|
||||
"fuzz mode - avoid large allocation inside snprintf");
|
||||
}
|
||||
#endif
|
||||
// Suppress the warning about nonliteral format string.
|
||||
|
||||
Reference in New Issue
Block a user