summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/clang-analyzer-unix.Malloc.json
blob: 701cbba680dab5918a6f5ebde46dcfca6c9a776b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[
  ["warning", "Attempt to free released memory", "clang-analyzer-unix.Malloc"],
  ["warning", "Use of memory after it is freed", "clang-analyzer-unix.Malloc"],
  [
    "warning",
    "Potential leak of memory pointed to by 'p'",
    "clang-analyzer-unix.Malloc"
  ],
  [
    "warning",
    "Argument to free() is the address of the local variable 'a', which is not memory allocated by malloc()",
    "clang-analyzer-unix.Malloc"
  ],
  [
    "warning",
    "Argument to free() is offset by -4 bytes from the start of memory allocated by malloc()",
    "clang-analyzer-unix.Malloc"
  ],
  { "reliability": "high" }
]