Skip to content

Commit

Permalink
fix msan errors (#1766)
Browse files Browse the repository at this point in the history
Co-authored-by: yegorskii <[email protected]>
  • Loading branch information
yegorskii and yegorskii authored Aug 9, 2024
1 parent 81834c5 commit 2185101
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cloud/filestore/libs/service_local/fs_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <cloud/storage/core/libs/common/file_io_service.h>

#include <util/string/builder.h>
#include <util/system/sanitizers.h>

namespace NCloud::NFileStore {

Expand Down Expand Up @@ -79,6 +80,8 @@ TFuture<NProto::TReadDataResponse> TLocalFileSystem::ReadDataAsync(
}

auto b = TString::Uninitialized(request.GetLength());
NSan::Unpoison(b.Data(), b.Size());

TArrayRef<char> data(b.begin(), b.vend());
auto promise = NewPromise<NProto::TReadDataResponse>();
FileIOService->AsyncRead(*handle, request.GetOffset(), data).Subscribe(
Expand Down

0 comments on commit 2185101

Please sign in to comment.