forked from OSchip/llvm-project
[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:
parent
df7b6b9142
commit
4c699b1cd0
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue