125 lines · plain
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-diagnostics-taint-test.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": "essential",28 "location": {29 "message": {30 "text": "Calling 'f'"31 },32 "physicalLocation": {33 "artifactLocation": {34 "index": 0,35 "uri": "file:///[...]/sarif-diagnostics-taint-test.c"36 },37 "region": {38 "endColumn": 6,39 "endLine": 13,40 "startColumn": 3,41 "startLine": 1342 }43 }44 }45 },46 {47 "importance": "essential",48 "location": {49 "message": {50 "text": "tainted"51 },52 "physicalLocation": {53 "artifactLocation": {54 "index": 0,55 "uri": "file:///[...]/sarif-diagnostics-taint-test.c"56 },57 "region": {58 "endColumn": 18,59 "endLine": 9,60 "startColumn": 11,61 "startLine": 962 }63 }64 }65 }66 ]67 }68 ]69 }70 ],71 "level": "warning",72 "locations": [73 {74 "physicalLocation": {75 "artifactLocation": {76 "index": 0,77 "uri": "file:///[...]/sarif-diagnostics-taint-test.c"78 },79 "region": {80 "endColumn": 18,81 "endLine": 9,82 "startColumn": 11,83 "startLine": 984 }85 }86 }87 ],88 "message": {89 "text": "tainted"90 },91 "partialFingerprints": {92 "clang/issueHash/v1": "5c964815b8d6db3989bacdd308e657d0"93 },94 "ruleId": "debug.TaintTest",95 "ruleIndex": 096 }97 ],98 "tool": {99 "driver": {100 "fullName": "clang static analyzer",101 "informationUri": "https://clang.llvm.org/docs/UsersManual.html",102 "language": "en-US",103 "name": "clang",104 "rules": [105 {106 "defaultConfiguration": {107 "enabled": true,108 "level": "warning",109 "rank": -1110 },111 "fullDescription": {112 "text": "Mark tainted symbols as such."113 },114 "id": "debug.TaintTest",115 "name": "debug.TaintTest"116 }117 ],118 "version": "[clang version]"119 }120 }121 }122 ],123 "version": "[SARIF version]"124}125