diff options
Diffstat (limited to 'lib/sanitizer_common/tests/sanitizer_suppressions_test.cc')
-rw-r--r-- | lib/sanitizer_common/tests/sanitizer_suppressions_test.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/sanitizer_common/tests/sanitizer_suppressions_test.cc b/lib/sanitizer_common/tests/sanitizer_suppressions_test.cc index 224ab0538..d64379a44 100644 --- a/lib/sanitizer_common/tests/sanitizer_suppressions_test.cc +++ b/lib/sanitizer_common/tests/sanitizer_suppressions_test.cc @@ -1,9 +1,8 @@ //===-- sanitizer_suppressions_test.cc ------------------------------------===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // @@ -132,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 |