-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathIO.json
More file actions
83 lines (83 loc) · 2.89 KB
/
Copy pathIO.json
File metadata and controls
83 lines (83 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"AUTOSAR": {
"A27-0-3": {
"properties": {
"allocated-target": [
"implementation"
],
"enforcement": "automated",
"obligation": "required"
},
"queries": [
{
"description": "Alternate input and output operations on a file stream shall not be used without an intervening flush or positioning call.",
"kind": "problem",
"name": "Alternate input and output on a file stream shall not be used without intervening positioning calls",
"precision": "high",
"severity": "error",
"short_name": "InterleavedInputOutputWithoutFlush",
"shared_implementation_short_name": "IOFstreamMissingPositioning",
"tags": [
"correctness"
],
"implementation_scope": {
"description": "The rule is enforced in the context of a single function."
}
}
],
"title": "Alternate input and output operations on a file stream shall not be used without an intervening flush or positioning call."
}
},
"CERT-C++": {
"FIO50-CPP": {
"properties": {
"obligation": "rule"
},
"queries": [
{
"description": "Alternating input and output from a file stream without an intervening positioning call is undefined behavior.",
"kind": "problem",
"name": "Do not alternately input and output from a file stream without an intervening positioning call",
"precision": "high",
"severity": "error",
"short_name": "InterleavedInputOutputWithoutPosition",
"shared_implementation_short_name": "IOFstreamMissingPositioning",
"tags": [
"correctness",
"external/cert/severity/low",
"external/cert/likelihood/likely",
"external/cert/remediation-cost/medium",
"external/cert/priority/p6",
"external/cert/level/l2"
]
}
],
"title": "Do not alternately input and output from a file stream without an intervening positioning call"
},
"FIO51-CPP": {
"properties": {
"obligation": "rule"
},
"queries": [
{
"description": "Failing to properly close files may allow an attacker to exhaust system resources.",
"kind": "problem",
"name": "Close files when they are no longer needed",
"precision": "high",
"severity": "error",
"short_name": "CloseFilesWhenTheyAreNoLongerNeeded",
"tags": [
"correctness",
"security",
"external/cert/severity/medium",
"external/cert/likelihood/unlikely",
"external/cert/remediation-cost/medium",
"external/cert/priority/p4",
"external/cert/level/l3"
]
}
],
"title": "Close files when they are no longer needed"
}
}
}