You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Using program-terminating functions like abort, exit, _Exit, quick_exit or terminate causes the stack to not be unwound and object destructors to not be called, potentially leaving the environment in an undesirable state.",
11
+
"kind": "problem",
12
+
"name": "Program-terminating functions should not be used",
13
+
"precision": "very-high",
14
+
"severity": "error",
15
+
"short_name": "AvoidProgramTerminatingFunctions",
16
+
"tags": [
17
+
"scope/single-translation-unit"
18
+
]
19
+
}
20
+
],
21
+
"title": "Program-terminating functions should not be used"
22
+
},
23
+
"RULE-21-10-1": {
24
+
"properties": {
25
+
"enforcement": "decidable",
26
+
"obligation": "required"
27
+
},
28
+
"queries": [
29
+
{
30
+
"description": "Using <cstdarg> features like va_list, va_arg, va_start, va_end and va_copy bypasses compiler type checking and leads to undefined behavior when used incorrectly.",
31
+
"kind": "problem",
32
+
"name": "The features of <cstdarg> shall not be used",
33
+
"precision": "very-high",
34
+
"severity": "error",
35
+
"short_name": "NoVariadicFunctionMacros",
36
+
"tags": [
37
+
"scope/single-translation-unit"
38
+
]
39
+
}
40
+
],
41
+
"title": "The features of <cstdarg> shall not be used"
42
+
},
43
+
"RULE-21-10-2": {
44
+
"properties": {
45
+
"enforcement": "decidable",
46
+
"obligation": "required"
47
+
},
48
+
"queries": [
49
+
{
50
+
"description": "Using facilities from the <csetjmp> header causes undefined behavior by bypassing normal function return mechanisms and may result in non-trivial object destruction being omitted.",
51
+
"kind": "problem",
52
+
"name": "The standard header file <csetjmp> shall not be used",
53
+
"precision": "very-high",
54
+
"severity": "error",
55
+
"short_name": "NoCsetjmpHeader",
56
+
"tags": [
57
+
"scope/single-translation-unit"
58
+
]
59
+
}
60
+
],
61
+
"title": "The standard header file <csetjmp> shall not be used"
62
+
},
63
+
"RULE-21-2-2": {
64
+
"properties": {
65
+
"enforcement": "decidable",
66
+
"obligation": "required"
67
+
},
68
+
"queries": [
69
+
{
70
+
"description": "Using string handling functions from <cstring>, <cstdlib>, <cwchar> and <cinttypes> headers may result in buffer overflows or unreliable error detection through errno.",
71
+
"kind": "problem",
72
+
"name": "The string handling functions from <cstring>, <cstdlib>, <cwchar> and <cinttypes> shall not be used",
73
+
"precision": "very-high",
74
+
"severity": "error",
75
+
"short_name": "UnsafeStringHandlingFunctions",
76
+
"tags": [
77
+
"scope/single-translation-unit"
78
+
]
79
+
}
80
+
],
81
+
"title": "The string handling functions from <cstring>, <cstdlib>, <cwchar> and <cinttypes> shall not be used"
82
+
},
83
+
"RULE-21-2-3": {
84
+
"properties": {
85
+
"enforcement": "decidable",
86
+
"obligation": "required"
87
+
},
88
+
"queries": [
89
+
{
90
+
"description": "Using the system() function from cstdlib or stdlib.h causes undefined behavior and potential security vulnerabilities.",
91
+
"kind": "problem",
92
+
"name": "The library function system from <cstdlib> shall not be used",
93
+
"precision": "very-high",
94
+
"severity": "error",
95
+
"short_name": "BannedSystemFunction",
96
+
"tags": [
97
+
"scope/single-translation-unit"
98
+
]
99
+
}
100
+
],
101
+
"title": "The library function system from <cstdlib> shall not be used"
102
+
},
103
+
"RULE-23-11-1": {
104
+
"properties": {
105
+
"enforcement": "decidable",
106
+
"obligation": "advisory"
107
+
},
108
+
"queries": [
109
+
{
110
+
"description": "Using raw pointer constructors of std::shared_ptr and std::unique_ptr instead of make_shared/make_unique can lead to memory leaks if exceptions occur during construction.",
111
+
"kind": "problem",
112
+
"name": "The raw pointer constructors of std::shared_ptr and std::unique_ptr should not be used",
113
+
"precision": "very-high",
114
+
"severity": "error",
115
+
"short_name": "UseSmartPtrFactoryFunctions",
116
+
"tags": [
117
+
"scope/single-translation-unit"
118
+
]
119
+
}
120
+
],
121
+
"title": "The raw pointer constructors of std::shared_ptr and std::unique_ptr should not be used"
122
+
},
123
+
"RULE-24-5-1": {
124
+
"properties": {
125
+
"enforcement": "decidable",
126
+
"obligation": "required"
127
+
},
128
+
"queries": [
129
+
{
130
+
"description": "Using character classification and case mapping functions from <cctype> and <cwctype> causes undefined behavior when arguments are not representable as unsigned char or not equal to EOF.",
131
+
"kind": "problem",
132
+
"name": "The character handling functions from <cctype> and <cwctype> shall not be used",
"title": "The character handling functions from <cctype> and <cwctype> shall not be used"
142
+
},
143
+
"RULE-24-5-2": {
144
+
"properties": {
145
+
"enforcement": "decidable",
146
+
"obligation": "required"
147
+
},
148
+
"queries": [
149
+
{
150
+
"description": "Using memcpy, memmove or memcmp from <cstring> can result in undefined behavior due to overlapping memory, non-trivially copyable objects, or unequal comparison of logically equal objects.",
151
+
"kind": "problem",
152
+
"name": "The C++ Standard Library functions memcpy, memmove and memcmp from <cstring> shall not be used",
153
+
"precision": "very-high",
154
+
"severity": "error",
155
+
"short_name": "NoMemoryFunctionsFromCString",
156
+
"tags": [
157
+
"scope/single-translation-unit"
158
+
]
159
+
}
160
+
],
161
+
"title": "The C++ Standard Library functions memcpy, memmove and memcmp from <cstring> shall not be used"
162
+
},
163
+
"RULE-25-5-1": {
164
+
"properties": {
165
+
"enforcement": "decidable",
166
+
"obligation": "required"
167
+
},
168
+
"queries": [
169
+
{
170
+
"description": "Calling setlocale or std::locale::global functions can introduce data races with functions that use the locale, leading to undefined behavior.",
171
+
"kind": "problem",
172
+
"name": "The setlocale and std::locale::global functions shall not be called",
173
+
"precision": "very-high",
174
+
"severity": "error",
175
+
"short_name": "LocaleGlobalFunctionNotAllowed",
176
+
"tags": [
177
+
"scope/single-translation-unit"
178
+
]
179
+
}
180
+
],
181
+
"title": "The setlocale and std::locale::global functions shall not be called"
0 commit comments