[msan] Don't EXPECT_POISONED beyond the we_wordv

Partially reverts commit 629411d799.

EXPECT_POISONED argument is outside of the allocation so we can't
assume the state of shadow there.
This commit is contained in:
Vitaly Buka 2021-08-24 17:11:51 -07:00
parent df7b6b9142
commit 4c699b1cd0
1 changed files with 0 additions and 2 deletions

View File

@ -3758,7 +3758,6 @@ TEST(MemorySanitizer, wordexp) {
ASSERT_STREQ("a", w.we_wordv[0]);
ASSERT_STREQ("b", w.we_wordv[1]);
ASSERT_STREQ("c", w.we_wordv[2]);
EXPECT_POISONED(w.we_wordv[3]);
}
TEST(MemorySanitizer, wordexp_initial_offset) {
@ -3771,7 +3770,6 @@ TEST(MemorySanitizer, wordexp_initial_offset) {
ASSERT_STREQ("a", w.we_wordv[1]);
ASSERT_STREQ("b", w.we_wordv[2]);
ASSERT_STREQ("c", w.we_wordv[3]);
EXPECT_POISONED(w.we_wordv[4]);
}
template<class T>