From: Vitaly Buka Date: Wed, 25 Aug 2021 00:11:51 +0000 (-0700) Subject: [msan] Don't EXPECT_POISONED beyond the we_wordv X-Git-Tag: upstream/15.0.7~33109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c699b1cd04df33cbf6e9f84272cd3309e7cc984;p=platform%2Fupstream%2Fllvm.git [msan] Don't EXPECT_POISONED beyond the we_wordv Partially reverts commit 629411d799223d7bc7aad98661b1443a4788c0c5. EXPECT_POISONED argument is outside of the allocation so we can't assume the state of shadow there. --- diff --git a/compiler-rt/lib/msan/tests/msan_test.cpp b/compiler-rt/lib/msan/tests/msan_test.cpp index 3ddba8c..7c9af65 100644 --- a/compiler-rt/lib/msan/tests/msan_test.cpp +++ b/compiler-rt/lib/msan/tests/msan_test.cpp @@ -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