[compiler-rt] r354373 - [sanitizers] add a regression test for the bug fixed in r354366
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 19 11:28:08 PST 2019
Author: kcc
Date: Tue Feb 19 11:28:08 2019
New Revision: 354373
URL: http://llvm.org/viewvc/llvm-project?rev=354373&view=rev
Log:
[sanitizers] add a regression test for the bug fixed in r354366
Modified:
compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_suppressions_test.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_suppressions_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_suppressions_test.cc?rev=354373&r1=354372&r2=354373&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_suppressions_test.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_suppressions_test.cc Tue Feb 19 11:28:08 2019
@@ -131,4 +131,10 @@ TEST_F(SuppressionContextTest, HasSuppre
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
More information about the llvm-commits
mailing list