Debian Codegraph @

gcc/testsuite/sarif-replay.dg/2.1.0-valid/spec-example-3.sarif

raw
1 /* Taken from SARIF v2.1.0, Appendix K.3: "Minimal recommended SARIF log
2 file without source information". */
3
4 {
5 "version": "2.1.0",
6 "runs": [
7 {
8 "tool": {
9 "driver": {
10 "name": "BinaryScanner"
11 }
12 },
13 "artifact": [
14 {
15 "location": {
16 "uri": "bin/example",
17 "uriBaseId": "BINROOT"
18 }
19 }
20 ],
21 "logicalLocations": [
22 {
23 "name": "Example",
24 "kind": "namespace"
25 },
26 {
27 "name": "Worker",
28 "fullyQualifiedName": "Example.Worker",
29 "kind": "type",
30 "parentIndex": 0
31 },
32 {
33 "name": "DoWork",
34 "fullyQualifiedName": "Example.Worker.DoWork",
35 "kind": "function",
36 "parentIndex": 1
37 }
38 ],
39 "results": [
40 {
41 "ruleId": "B6412",
42 "message": {
43 "text": "The insecure method \"Crypto.Sha1.Encrypt\" should not be used."
44 },
45 "level": "warning",
46 "locations": [
47 {
48 "logicalLocations": [
49 {
50 "fullyQualifiedName": "Example.Worker.DoWork",
51 "index": 2
52 }
53 ]
54 }
55 ]
56 }
57 ]
58 }
59 ]
60 }
61
62 /* { dg-begin-multiline-output "" }
63 In function 'Example.Worker.DoWork':
64 BinaryScanner: warning: The insecure method "Crypto.Sha1.Encrypt" should not be used. [B6412]
65 { dg-end-multiline-output "" } */