Skip to content

Commit 1895110

Browse files
alexvruydbot
authored andcommitted
Fix msan issue -- explicitly fill padding with zeroes (#25762)
1 parent 4f24a5f commit 1895110

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)