Skip to content

Commit e5e9965

Browse files
committed
import
1 parent f5d8a70 commit e5e9965

File tree

2 files changed

+8
-71
lines changed

2 files changed

+8
-71
lines changed

rule_packages/c/Concurrency3.json

Lines changed: 6 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
11
{
22
"CERT-C": {
3-
"CON30-C": {
4-
"properties": {
5-
"obligation": "rule"
6-
},
7-
"queries": [
8-
{
9-
"description": "",
10-
"kind": "problem",
11-
"name": "Clean up thread-specific storage",
12-
"precision": "medium",
13-
"severity": "error",
14-
"short_name": "CleanUpThreadSpecificStorage",
15-
"tags": []
16-
}
17-
],
18-
"title": "Clean up thread-specific storage"
19-
},
203
"CON31-C": {
214
"properties": {
225
"obligation": "rule"
@@ -51,74 +34,27 @@
5134
],
5235
"title": "Do not destroy a mutex while it is locked"
5336
},
54-
"CON34-C": {
55-
"properties": {
56-
"obligation": "rule"
57-
},
58-
"queries": [
59-
{
60-
"description": "",
61-
"kind": "problem",
62-
"name": "Declare objects shared between threads with appropriate storage durations",
63-
"precision": "high",
64-
"severity": "error",
65-
"short_name": "DeclareThreadsWithAppropriateStorageDurations",
66-
"tags": []
67-
}
68-
],
69-
"title": "Declare objects shared between threads with appropriate storage durations"
70-
},
7137
"CON38-C": {
7238
"properties": {
7339
"obligation": "rule"
7440
},
7541
"queries": [
7642
{
77-
"description": "",
43+
"description": "Usages of `cnd_signal` with non-unique condition variables may impact thread safety and liveness.",
7844
"kind": "problem",
7945
"name": "Preserve thread safety and liveness when using condition variables",
8046
"precision": "very-high",
8147
"severity": "error",
8248
"short_name": "PreserveSafetyWhenUsingConditionVariables",
83-
"tags": []
49+
"shared_implementation_short_name": "PreserveSafetyWhenUsingConditionVariables",
50+
"tags": [
51+
"correctness",
52+
"concurrency"
53+
]
8454
}
8555
],
8656
"title": "Preserve thread safety and liveness when using condition variables"
8757
},
88-
"CON39-C": {
89-
"properties": {
90-
"obligation": "rule"
91-
},
92-
"queries": [
93-
{
94-
"description": "",
95-
"kind": "problem",
96-
"name": "Do not join or detach a thread that was previously joined or detached",
97-
"precision": "high",
98-
"severity": "error",
99-
"short_name": "ThreadPreviouslyJoinedOrDetached",
100-
"tags": []
101-
}
102-
],
103-
"title": "Do not join or detach a thread that was previously joined or detached"
104-
},
105-
"CON40-C": {
106-
"properties": {
107-
"obligation": "rule"
108-
},
109-
"queries": [
110-
{
111-
"description": "",
112-
"kind": "problem",
113-
"name": "Do not refer to an atomic variable twice in an expression",
114-
"precision": "very-high",
115-
"severity": "error",
116-
"short_name": "DoNotReferToAnAtomicVariableTwiceInExpression",
117-
"tags": []
118-
}
119-
],
120-
"title": "Do not refer to an atomic variable twice in an expression"
121-
},
12258
"CON41-C": {
12359
"properties": {
12460
"obligation": "rule"

rule_packages/cpp/Concurrency.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@
128128
"name": "Preserve thread safety and liveness when using condition variables",
129129
"precision": "high",
130130
"severity": "error",
131-
"short_name": "PreserveThreadSafetyAndLivenessWhenUsingConditionVariables",
131+
"short_name": "PreserveSafetyWhenUsingConditionVariables",
132+
"shared_implementation_short_name": "PreserveSafetyWhenUsingConditionVariables",
132133
"tags": [
133134
"correctness",
134135
"concurrency"

0 commit comments

Comments
 (0)