| 1 |
{ |
| 2 |
"$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/cos02/schemas/sarif-schema-2.1.0.json", |
| 3 |
"runs": [ |
| 4 |
{ |
| 5 |
"artifacts": [ |
| 6 |
{ |
| 7 |
"length": -1, |
| 8 |
"location": { |
| 9 |
"index": 0, |
| 10 |
"uri": "file:///[...]/sarif-multi-file-diagnostics.c" |
| 11 |
}, |
| 12 |
"mimeType": "text/plain", |
| 13 |
"roles": [ |
| 14 |
"resultFile" |
| 15 |
] |
| 16 |
} |
| 17 |
], |
| 18 |
"columnKind": "unicodeCodePoints", |
| 19 |
"results": [ |
| 20 |
{ |
| 21 |
"codeFlows": [ |
| 22 |
{ |
| 23 |
"threadFlows": [ |
| 24 |
{ |
| 25 |
"locations": [ |
| 26 |
{ |
| 27 |
"importance": "important", |
| 28 |
"location": { |
| 29 |
"message": { |
| 30 |
"text": "Assuming 'p' is null" |
| 31 |
}, |
| 32 |
"physicalLocation": { |
| 33 |
"artifactLocation": { |
| 34 |
"index": 0, |
| 35 |
"uri": "file:///[...]/sarif-multi-file-diagnostics.c" |
| 36 |
}, |
| 37 |
"region": { |
| 38 |
"endColumn": 7, |
| 39 |
"startColumn": 7, |
| 40 |
"startLine": 8 |
| 41 |
} |
| 42 |
} |
| 43 |
} |
| 44 |
}, |
| 45 |
{ |
| 46 |
"importance": "unimportant", |
| 47 |
"location": { |
| 48 |
"message": { |
| 49 |
"text": "Taking false branch" |
| 50 |
}, |
| 51 |
"physicalLocation": { |
| 52 |
"artifactLocation": { |
| 53 |
"index": 0, |
| 54 |
"uri": "file:///[...]/sarif-multi-file-diagnostics.c" |
| 55 |
}, |
| 56 |
"region": { |
| 57 |
"endColumn": 3, |
| 58 |
"startColumn": 3, |
| 59 |
"startLine": 8 |
| 60 |
} |
| 61 |
} |
| 62 |
} |
| 63 |
}, |
| 64 |
{ |
| 65 |
"importance": "essential", |
| 66 |
"location": { |
| 67 |
"message": { |
| 68 |
"text": "Dereference of null pointer (loaded from variable 'p')" |
| 69 |
}, |
| 70 |
"physicalLocation": { |
| 71 |
"artifactLocation": { |
| 72 |
"index": 0, |
| 73 |
"uri": "file:///[...]/sarif-multi-file-diagnostics.c" |
| 74 |
}, |
| 75 |
"region": { |
| 76 |
"endColumn": 14, |
| 77 |
"endLine": 11, |
| 78 |
"startColumn": 12, |
| 79 |
"startLine": 11 |
| 80 |
} |
| 81 |
} |
| 82 |
} |
| 83 |
} |
| 84 |
] |
| 85 |
} |
| 86 |
] |
| 87 |
} |
| 88 |
], |
| 89 |
"hostedViewerUri": "file:///[...]/report-d03238.html", |
| 90 |
"level": "warning", |
| 91 |
"locations": [ |
| 92 |
{ |
| 93 |
"physicalLocation": { |
| 94 |
"artifactLocation": { |
| 95 |
"index": 0, |
| 96 |
"uri": "file:///[...]/sarif-multi-file-diagnostics.c" |
| 97 |
}, |
| 98 |
"region": { |
| 99 |
"endColumn": 14, |
| 100 |
"endLine": 11, |
| 101 |
"startColumn": 12, |
| 102 |
"startLine": 11 |
| 103 |
} |
| 104 |
} |
| 105 |
} |
| 106 |
], |
| 107 |
"message": { |
| 108 |
"text": "Dereference of null pointer (loaded from variable 'p')" |
| 109 |
}, |
| 110 |
"partialFingerprints": { |
| 111 |
"clang/issueHash/v1": "d0323824ffaf9fee78b866e18d300fda" |
| 112 |
}, |
| 113 |
"ruleId": "core.NullDereference", |
| 114 |
"ruleIndex": 0 |
| 115 |
} |
| 116 |
], |
| 117 |
"tool": { |
| 118 |
"driver": { |
| 119 |
"fullName": "clang static analyzer", |
| 120 |
"informationUri": "https://clang.llvm.org/docs/UsersManual.html", |
| 121 |
"language": "en-US", |
| 122 |
"name": "clang", |
| 123 |
"rules": [ |
| 124 |
{ |
| 125 |
"defaultConfiguration": { |
| 126 |
"enabled": true, |
| 127 |
"level": "warning", |
| 128 |
"rank": -1 |
| 129 |
}, |
| 130 |
"fullDescription": { |
| 131 |
"text": "Check for dereferences of null pointers" |
| 132 |
}, |
| 133 |
"helpUri": "https://clang.llvm.org/docs/analyzer/checkers.html#core-nulldereference", |
| 134 |
"id": "core.NullDereference", |
| 135 |
"name": "core.NullDereference" |
| 136 |
} |
| 137 |
], |
| 138 |
"version": "[clang version]" |
| 139 |
} |
| 140 |
} |
| 141 |
} |
| 142 |
], |
| 143 |
"version": "[SARIF version]" |
| 144 |
} |