Skip to content

Commit

Permalink
Only leave the extreme profile on gcc checkers
Browse files Browse the repository at this point in the history
  • Loading branch information
Szelethus committed Oct 13, 2023
1 parent 084779d commit 64b9167
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 83 deletions.
3 changes: 2 additions & 1 deletion analyzer/codechecker_analyzer/analyzers/gcc/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def get_version(cls, env=None):
return cls.__get_analyzer_version(cls.analyzer_binary(), env)

def add_checker_config(self, checker_cfg):
LOG.warning("Checker configuration for Gcc is not implemented yet")
# TODO
pass

@classmethod
def get_analyzer_mentioned_files(self, output):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NORMAL#CodeChecker log --output $LOGFILE$ --build "make gcc_simple" --quiet
NORMAL#CodeChecker analyze $LOGFILE$ --output $OUTPUT$ --analyzers gcc --enable=sensitive
NORMAL#CodeChecker parse $OUTPUT$
CHECK#CodeChecker check --build "make gcc_simple" --output $OUTPUT$ --quiet --analyzers gcc --enable=sensitive
CHECK#CodeChecker check --build "make gcc_simple" --output $OUTPUT$ --quiet --analyzers gcc --enable=extreme
-----------------------------------------------
[] - Starting build...
[] - Using CodeChecker ld-logger.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NORMAL#CodeChecker log --output $LOGFILE$ --build "make gcc_simple" --quiet
NORMAL#CodeChecker analyze $LOGFILE$ --output $OUTPUT$ --analyzers gcc --enable=sensitive -d gcc-double-free
NORMAL#CodeChecker parse $OUTPUT$
CHECK#CodeChecker check --build "make gcc_simple" --output $OUTPUT$ --quiet --analyzers gcc --enable=sensitive -d gcc-double-free
CHECK#CodeChecker check --build "make gcc_simple" --output $OUTPUT$ --quiet --analyzers gcc --enable=extreme -d gcc-double-free
-----------------------------------------------
[] - Starting build...
[] - Using CodeChecker ld-logger.
Expand Down
80 changes: 0 additions & 80 deletions config/labels/analyzers/gcc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,281 +4,201 @@
"gcc-allocation-size": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-allocation-size",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-deref-before-check": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-deref-before-check",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-double-fclose": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-double-fclose",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-double-free": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-double-free",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-exposure-through-output-file": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-exposure-through-output-file",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-exposure-through-uninit-copy": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-exposure-through-uninit-copy",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-fd-access-mode-mismatch": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-fd-access-mode-mismatch",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-fd-double-close": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-fd-double-close",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-fd-leak": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-fd-leak",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-fd-phase-mismatch": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-fd-phase-mismatch",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-fd-type-mismatch": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-fd-type-mismatch",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-fd-use-after-close": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-fd-use-after-close",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-fd-use-without-check": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-fd-use-without-check",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-file-leak": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-file-leak",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-free-of-non-heap": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-free-of-non-heap",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-imprecise-fp-arithmetic": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-imprecise-fp-arithmetic",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-infinite-recursion": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-infinite-recursion",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-jump-through-null": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-jump-through-null",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-malloc-leak": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-malloc-leak",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-mismatching-deallocation": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-mismatching-deallocation",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-null-argument": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-null-argument",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-null-dereference": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-null-dereference",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-out-of-bounds": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-out-of-bounds",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-overlapping-buffers": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-overlapping-buffers",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-possible-null-argument": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-possible-null-argument",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-possible-null-dereference": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-possible-null-dereference",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-putenv-of-auto-var": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-putenv-of-auto-var",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-shift-count-negative": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-shift-count-negative",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-shift-count-overflow": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-shift-count-overflow",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-stale-setjmp-buffer": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-stale-setjmp-buffer",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-unsafe-call-within-signal-handler": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-unsafe-call-within-signal-handler",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-use-after-free": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-use-after-free",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-use-of-pointer-in-stale-stack-frame": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-use-of-pointer-in-stale-stack-frame",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-use-of-uninitialized-value": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-use-of-uninitialized-value",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-va-arg-type-mismatch": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-va-arg-type-mismatch",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-va-list-exhausted": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-va-list-exhausted",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-va-list-leak": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-va-list-leak",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-va-list-use-after-va-end": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-va-list-use-after-va-end",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-write-to-const": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-write-to-const",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
],
"gcc-write-to-string-literal": [
"doc_url:https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html#index-Wanalyzer-write-to-string-literal",
"profile:extreme",
"profile:security",
"profile:sensitive",
"severity:LOW"
]
}
Expand Down

0 comments on commit 64b9167

Please sign in to comment.