Skip to content

Commit 7082c9f

Browse files
authored
stable-25-3-1: Fix msan issue -- explicitly fill padding with zeroes (#25769)
2 parents 5849289 + 1895110 commit 7082c9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl_metadata.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,9 @@ namespace NKikimr::NPDisk {
753753
header->EncryptData(cypher);
754754
header->Encrypt(cypher);
755755

756+
// fill padding to make msan comfortable
757+
memset(buffer.GetDataMut() + sizeof(TMetadataHeader) + payloadSize, 0,
758+
bytesToWrite - sizeof(TMetadataHeader) - payloadSize);
756759
return buffer;
757760
}
758761

0 commit comments

Comments
 (0)