Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 409e53c

Browse filesBrowse files
committed
BannedFunctions: assign scope to each query
1 parent f676b86 commit 409e53c
Copy full SHA for 409e53c

File tree

1 file changed

+24
-13
lines changed
Filter options

1 file changed

+24
-13
lines changed

‎rule_packages/cpp/BannedFunctions.json

Copy file name to clipboardExpand all lines: rule_packages/cpp/BannedFunctions.json
+24-13Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"severity": "error",
1818
"short_name": "FunctionsMallocCallocReallocAndFreeUsed",
1919
"tags": [
20-
"correctness"
20+
"correctness",
21+
"scope/single-translation-unit"
2122
]
2223
}
2324
],
@@ -40,7 +41,8 @@
4041
"severity": "error",
4142
"short_name": "BindUsed",
4243
"tags": [
43-
"correctness"
44+
"correctness",
45+
"scope/single-translation-unit"
4446
]
4547
}
4648
],
@@ -62,9 +64,10 @@
6264
"precision": "very-high",
6365
"severity": "error",
6466
"short_name": "PseudorandomNumbersGeneratedUsingRand",
65-
"shared_implementation_short_name" : "DoNotUseRandForGeneratingPseudorandomNumbers",
67+
"shared_implementation_short_name": "DoNotUseRandForGeneratingPseudorandomNumbers",
6668
"tags": [
67-
"security"
69+
"security",
70+
"scope/single-translation-unit"
6871
]
6972
}
7073
],
@@ -87,7 +90,8 @@
8790
"severity": "error",
8891
"short_name": "SetjmpMacroAndTheLongjmpFunctionUsed",
8992
"tags": [
90-
"correctness"
93+
"correctness",
94+
"scope/single-translation-unit"
9195
]
9296
}
9397
],
@@ -111,7 +115,8 @@
111115
"short_name": "LibraryFunctionsAbortExitGetenvAndSystemFromLibraryCstdlibUsed",
112116
"tags": [
113117
"correctness",
114-
"security"
118+
"security",
119+
"scope/single-translation-unit"
115120
]
116121
}
117122
],
@@ -135,7 +140,8 @@
135140
"short_name": "TimeHandlingFunctionsOfLibraryCtimeUsed",
136141
"tags": [
137142
"correctness",
138-
"security"
143+
"security",
144+
"scope/single-translation-unit"
139145
]
140146
}
141147
],
@@ -159,7 +165,8 @@
159165
"short_name": "UnboundedFunctionsOfLibraryCstringUsed",
160166
"tags": [
161167
"security",
162-
"correctness"
168+
"correctness",
169+
"scope/single-translation-unit"
163170
]
164171
}
165172
],
@@ -182,7 +189,8 @@
182189
"severity": "error",
183190
"short_name": "MacroOffsetofUsed",
184191
"tags": [
185-
"security"
192+
"security",
193+
"scope/single-translation-unit"
186194
]
187195
}
188196
],
@@ -203,7 +211,8 @@
203211
"severity": "error",
204212
"short_name": "DoNotUseSetjmpOrLongjmp",
205213
"tags": [
206-
"correctness"
214+
"correctness",
215+
"scope/single-translation-unit"
207216
]
208217
}
209218
],
@@ -221,9 +230,10 @@
221230
"precision": "very-high",
222231
"severity": "error",
223232
"short_name": "DoNotUseRandForGeneratingPseudorandomNumbers",
224-
"shared_implementation_short_name" : "DoNotUseRandForGeneratingPseudorandomNumbers",
233+
"shared_implementation_short_name": "DoNotUseRandForGeneratingPseudorandomNumbers",
225234
"tags": [
226-
"security"
235+
"security",
236+
"scope/single-translation-unit"
227237
]
228238
}
229239
],
@@ -242,7 +252,8 @@
242252
"severity": "error",
243253
"short_name": "PreferSpecialMemberFunctionsAndOverloadedOperatorsToCStandardLibraryFunctions",
244254
"tags": [
245-
"correctness"
255+
"correctness",
256+
"scope/single-translation-unit"
246257
]
247258
}
248259
],

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.