Skip to content

Commit

Permalink
Fix LoggingTest build on some platforms with some build config
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyRyabinin committed Aug 28, 2023
1 parent b429605 commit c26bae4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/aws-cpp-sdk-core-tests/utils/logging/LoggingTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ class MockCRTLogSystem : public DefaultCRTLogSystem
va_end(tmp_args);

Array<char> outputBuff(requiredLength);
if(!outputBuff.GetUnderlyingData() || !outputBuff.GetLength()) {
assert(!"Failed to allocate mock outputBuff!");
return;
}
#ifdef _WIN32
vsnprintf_s(outputBuff.GetUnderlyingData(), outputBuff.GetLength(), _TRUNCATE, formatStr, args);
#else
Expand Down

0 comments on commit c26bae4

Please sign in to comment.