| { |
| "$schema": "http://json.schemastore.org/sarif-2.0.0-csd.2.beta.2018-11-28", |
| "runs": [ |
| { |
| "files": [ |
| { |
| "fileLocation": { |
| "uri": "file:sarif-diagnostics-taint-test.c" |
| }, |
| "length": 413, |
| "mimeType": "text/plain", |
| "roles": [ |
| "resultFile" |
| ] |
| } |
| ], |
| "resources": { |
| "rules": [ |
| { |
| "fullDescription": { |
| "text": "Mark tainted symbols as such." |
| }, |
| "id": "debug.TaintTest", |
| "name": { |
| "text": "debug.TaintTest" |
| } |
| } |
| ] |
| }, |
| "results": [ |
| { |
| "codeFlows": [ |
| { |
| "threadFlows": [ |
| { |
| "locations": [ |
| { |
| "importance": "essential", |
| "location": { |
| "message": { |
| "text": "Calling 'f'" |
| }, |
| "physicalLocation": { |
| "fileLocation": { |
| "fileIndex": 0, |
| "uri": "file:sarif-diagnostics-taint-test.c" |
| }, |
| "region": { |
| "endColumn": 5, |
| "endLine": 13, |
| "startColumn": 3, |
| "startLine": 13 |
| } |
| } |
| } |
| }, |
| { |
| "importance": "essential", |
| "location": { |
| "message": { |
| "text": "tainted" |
| }, |
| "physicalLocation": { |
| "fileLocation": { |
| "fileIndex": 0, |
| "uri": "file:sarif-diagnostics-taint-test.c" |
| }, |
| "region": { |
| "endColumn": 17, |
| "endLine": 9, |
| "startColumn": 11, |
| "startLine": 9 |
| } |
| } |
| } |
| } |
| ] |
| } |
| ] |
| } |
| ], |
| "locations": [ |
| { |
| "physicalLocation": { |
| "fileLocation": { |
| "fileIndex": 0, |
| "uri": "file:sarif-diagnostics-taint-test.c" |
| }, |
| "region": { |
| "endColumn": 17, |
| "endLine": 9, |
| "startColumn": 11, |
| "startLine": 9 |
| } |
| } |
| } |
| ], |
| "message": { |
| "text": "tainted" |
| }, |
| "ruleId": "debug.TaintTest", |
| "ruleIndex": 0 |
| } |
| ], |
| "tool": { |
| "fullName": "clang static analyzer", |
| "language": "en-US", |
| "name": "clang", |
| "version": "clang version 8.0.0 (https://github.com/llvm-project/clang.git a5ccb257a7a70928ede717a7c282f5fc8cbed310) (https://github.com/llvm-mirror/llvm.git 73cebd79c512f7129eca16b0f3a7abd21d2881e8)" |
| } |
| } |
| ], |
| "version": "2.0.0-csd.2.beta.2018-11-28" |
| } |