diff --git a/Firestore/core/src/util/string_format.cc b/Firestore/core/src/util/string_format.cc index cff978c9aa2..359ad88162c 100644 --- a/Firestore/core/src/util/string_format.cc +++ b/Firestore/core/src/util/string_format.cc @@ -26,7 +26,11 @@ static const char* kInvalid = ""; // Disable asan for this function because of the way it manages stack // (nested closure) is flaged with stack underflow by clang on Ubuntu. +#if defined(_MSC_VER) +__declspec(no_sanitize_address) std::string StringFormatPieces( +#else __attribute__((no_sanitize_address)) std::string StringFormatPieces( +#endif const char* format, std::initializer_list pieces) { std::string result;