Merge "libsnapshot: Fix crash in MakeXorBlockString test."

This commit is contained in:
David Anderson 2021-12-03 19:28:41 +00:00 committed by Gerrit Code Review
commit 35cbd4d472

View file

@ -155,8 +155,8 @@ class OfflineSnapshotTest : public ::testing::Test {
}
std::string MakeXorBlockString() {
std::string data(100, -1);
data.resize(kBlockSize, 0);
std::string data(kBlockSize, 0);
memset(data.data(), 0xff, 100);
return data;
}