Skip to content

Commit

Permalink
Fix fuzz testing build blocking release. (#9008)
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavsharma authored Sep 9, 2021
1 parent 1533f57 commit d399591
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions onnxruntime/test/fuzzing/src/testlog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
// Licensed under the MIT License.

#include "testlog.h"
#include <string.h>
#include <filesystem>

#include "core/common/common.h"
namespace Logger
{
// Initialize static variable for the whole
Expand Down Expand Up @@ -145,7 +146,7 @@ namespace Logger
{
std::mbstate_t ps;
size_t retVal;
size_t length_str = std::strnlen(pStr, onnxruntime::kMaxStrLen);
size_t length_str = strnlen(pStr, onnxruntime::kMaxStrLen);
mbsrtowcs_s(&retVal, nullptr, 0, &pStr, length_str, &ps );
retVal += 1;
auto ptr = std::make_unique<wchar_t[]>(retVal);
Expand Down

0 comments on commit d399591

Please sign in to comment.