Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fuzz testing build blocking release. #9008

Merged
merged 1 commit into from
Sep 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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