Skip to content

Commit 4c699b1

Browse files
committed
[msan] Don't EXPECT_POISONED beyond the we_wordv
Partially reverts commit 629411d. EXPECT_POISONED argument is outside of the allocation so we can't assume the state of shadow there.
1 parent df7b6b9 commit 4c699b1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler-rt/lib/msan/tests/msan_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3758,7 +3758,6 @@ TEST(MemorySanitizer, wordexp) {
37583758
ASSERT_STREQ("a", w.we_wordv[0]);
37593759
ASSERT_STREQ("b", w.we_wordv[1]);
37603760
ASSERT_STREQ("c", w.we_wordv[2]);
3761-
EXPECT_POISONED(w.we_wordv[3]);
37623761
}
37633762

37643763
TEST(MemorySanitizer, wordexp_initial_offset) {
@@ -3771,7 +3770,6 @@ TEST(MemorySanitizer, wordexp_initial_offset) {
37713770
ASSERT_STREQ("a", w.we_wordv[1]);
37723771
ASSERT_STREQ("b", w.we_wordv[2]);
37733772
ASSERT_STREQ("c", w.we_wordv[3]);
3774-
EXPECT_POISONED(w.we_wordv[4]);
37753773
}
37763774

37773775
template<class T>

0 commit comments

Comments
 (0)