From 99b077a3cab3cc039ff785bf8dee274c801127dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Csord=C3=A1s?= Date: Thu, 28 Oct 2021 10:55:11 +0200 Subject: [PATCH] [config] Add label files for sanitizers Add label files for supported sanitizers (address, leak, memory, thead and undefined behavior). --- config/labels/analyzers/asan.json | 9 +++++++++ config/labels/analyzers/clang-tidy.json | 6 ------ config/labels/analyzers/clangsa.json | 6 ------ config/labels/analyzers/lsan.json | 9 +++++++++ config/labels/analyzers/msan.json | 9 +++++++++ config/labels/analyzers/tsan.json | 9 +++++++++ config/labels/analyzers/ubsan.json | 9 +++++++++ 7 files changed, 45 insertions(+), 12 deletions(-) create mode 100644 config/labels/analyzers/asan.json create mode 100644 config/labels/analyzers/lsan.json create mode 100644 config/labels/analyzers/msan.json create mode 100644 config/labels/analyzers/tsan.json create mode 100644 config/labels/analyzers/ubsan.json diff --git a/config/labels/analyzers/asan.json b/config/labels/analyzers/asan.json new file mode 100644 index 0000000000..f00bc78ff5 --- /dev/null +++ b/config/labels/analyzers/asan.json @@ -0,0 +1,9 @@ +{ + "analyzer": "asan", + "labels": { + "AddressSanitizer": [ + "doc_url:https://clang.llvm.org/docs/AddressSanitizer.html", + "severity:HIGH" + ] + } +} diff --git a/config/labels/analyzers/clang-tidy.json b/config/labels/analyzers/clang-tidy.json index 80534aaa46..60ea391026 100644 --- a/config/labels/analyzers/clang-tidy.json +++ b/config/labels/analyzers/clang-tidy.json @@ -108,9 +108,6 @@ ], "android-comparison-in-temp-failure-retry": [ - ], - "AddressSanitizer": [ - "severity:HIGH" ], "boost-use-to-string": [ "profile:sensitive", @@ -1143,9 +1140,6 @@ "llvmlibc-restrict-system-libc-headers": [ "severity:LOW" ], - "MemorySanitizer": [ - "severity:HIGH" - ], "misc-argument-comment": [ "severity:LOW", "profile:sensitive", diff --git a/config/labels/analyzers/clangsa.json b/config/labels/analyzers/clangsa.json index d8885d9f10..c8984b06ff 100644 --- a/config/labels/analyzers/clangsa.json +++ b/config/labels/analyzers/clangsa.json @@ -826,12 +826,6 @@ "sei-cert:pos33-c", "severity:MEDIUM" ], - "ThreadSanitizer": [ - "severity:HIGH" - ], - "UndefinedBehaviorSanitizer": [ - "severity:HIGH" - ], "unix.API": [ "profile:default", "profile:sensitive", diff --git a/config/labels/analyzers/lsan.json b/config/labels/analyzers/lsan.json new file mode 100644 index 0000000000..9623b8a8c9 --- /dev/null +++ b/config/labels/analyzers/lsan.json @@ -0,0 +1,9 @@ +{ + "analyzer": "lsan", + "labels": { + "LeakSanitizer": [ + "doc_url:https://clang.llvm.org/docs/LeakSanitizer.html", + "severity:HIGH" + ] + } +} diff --git a/config/labels/analyzers/msan.json b/config/labels/analyzers/msan.json new file mode 100644 index 0000000000..c2a985efc2 --- /dev/null +++ b/config/labels/analyzers/msan.json @@ -0,0 +1,9 @@ +{ + "analyzer": "msan", + "labels": { + "MemorySanitizer": [ + "doc_url:https://clang.llvm.org/docs/MemorySanitizer.html", + "severity:HIGH" + ] + } +} diff --git a/config/labels/analyzers/tsan.json b/config/labels/analyzers/tsan.json new file mode 100644 index 0000000000..e6c053dc5e --- /dev/null +++ b/config/labels/analyzers/tsan.json @@ -0,0 +1,9 @@ +{ + "analyzer": "tsan", + "labels": { + "ThreadSanitizer": [ + "doc_url:https://clang.llvm.org/docs/ThreadSanitizer.html", + "severity:HIGH" + ] + } +} diff --git a/config/labels/analyzers/ubsan.json b/config/labels/analyzers/ubsan.json new file mode 100644 index 0000000000..3415f250be --- /dev/null +++ b/config/labels/analyzers/ubsan.json @@ -0,0 +1,9 @@ +{ + "analyzer": "ubsan", + "labels": { + "UndefinedBehaviorSanitizer": [ + "doc_url:https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html", + "severity:HIGH" + ] + } +}