[sanitizers] add a regression test for the bug fixed in r354366

llvm-svn: 354373
This commit is contained in:
Kostya Serebryany 2019-02-19 19:28:08 +00:00
parent 7d2cfa1fd5
commit 64c7b060bc
1 changed files with 6 additions and 0 deletions

View File

@ -131,4 +131,10 @@ TEST_F(SuppressionContextTest, HasSuppressionType) {
EXPECT_FALSE(ctx_.HasSuppressionType("signal"));
}
TEST_F(SuppressionContextTest, RegressionTestForBufferOverflowInSuppressions) {
EXPECT_DEATH(ctx_.Parse("race"), "failed to parse suppressions");
EXPECT_DEATH(ctx_.Parse("foo"), "failed to parse suppressions");
}
} // namespace __sanitizer