Skip to content

Commit 72c4d02

Browse files
authored
Merge branch 'main' into knewbury01/Declarations1
2 parents f45932d + 585acc9 commit 72c4d02

25 files changed

+141
-203
lines changed

c/cert/src/rules/CON31-C/DoNotAllowAMutexToGoOutOfScopeWhileLocked.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ CWE-667 = Union, CON31-C, POS48-C, list) where list =
165165

166166
## Implementation notes
167167

168-
None
168+
This implementation does not allow for thread synchronization to be performed in subroutines. All synchronization must be performed within the context of the other thread management functions.
169169

170170
## References
171171

c/cert/src/rules/CON37-C/DoNotCallSignalInMultithreadedProgram.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ Search for [vulnerabilities](https://wiki.sei.cmu.edu/confluence/display/c/BB.+D
105105

106106
## Implementation notes
107107

108+
This implementation does not consider threads created function pointers.
109+
108110
## References
109111

110112
* CERT-C: [CON37-C: Do not call signal() in a multithreaded program](https://wiki.sei.cmu.edu/confluence/display/c)

c/cert/src/rules/CON38-C/PreserveSafetyWhenUsingConditionVariables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ Search for [vulnerabilities](https://www.securecoding.cert.org/confluence/displa
350350

351351
## Implementation notes
352352

353-
None
353+
This implementation does not attempt to identify unique condition variables and instead advocates for the usage of `cnd_broadcast`.
354354

355355
## References
356356

c/cert/src/rules/CON41-C/WrapFunctionsThatCanFailSpuriouslyInLoop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Search for [vulnerabilities](https://www.securecoding.cert.org/confluence/displa
149149
150150
## Implementation notes
151151
152-
None
152+
This implementation does not attempt to identify a relationship between the condition variable and the atomic operation.
153153
154154
## References
155155

c/cert/src/rules/ENV31-C/EnvPointerIsInvalidAfterCertainOperations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ Search for vulnerabilities resulting from the violation of this rule on the [CER
218218

219219
## Implementation notes
220220

221-
None
221+
The rule is enforced in the context of a single function.
222222

223223
## References
224224

c/cert/src/rules/FIO32-C/DoNotPerformFileOperationsOnDevices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ FIO32-C = Union( CWE-67, list) where list =
249249

250250
## Implementation notes
251251

252-
None
252+
The rule checks that filenames are not tainted. It does not verify that appropriate OS-specific checks are in place to exclude that the opened file is a device.
253253

254254
## References
255255

c/cert/src/rules/FIO34-C/DistinguishBetweenCharReadFromAFileAndEofOrWeof.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Therefore: FIO34-C = Subset( CWE-197)
199199

200200
## Implementation notes
201201

202-
None
202+
The rule is enforced in the context of a single function. The query does not validate if the FILE status is handled correctly after being read.
203203

204204
## References
205205

c/cert/src/rules/FIO34-C/EndOfFileCheckPortability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Therefore: FIO34-C = Subset( CWE-197)
199199

200200
## Implementation notes
201201

202-
None
202+
The rule is enforced in the context of a single function. The query does not validate if the FILE status is handled correctly after being read.
203203

204204
## References
205205

c/cert/src/rules/FIO37-C/SuccessfulFgetsOrFgetwsMayReturnAnEmptyString.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ CWE-241 = Union( FIO37-C, list) where list =
102102

103103
## Implementation notes
104104

105-
None
105+
The rule checks that access to a string returned by fgets() or fgetws() if protected by a guard condition. The rule is enforced in the context of a single function.
106106

107107
## References
108108

c/cert/src/rules/FIO39-C/DoNotAlternatelyIOFromAStreamWithoutPositioning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ This CWE is vague on what constitutes “improper control of a resource”. It c
135135

136136
## Implementation notes
137137

138-
None
138+
The rule is enforced in the context of a single function.
139139

140140
## References
141141

0 commit comments

Comments
 (0)