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 f83c0fa

Browse filesBrowse files
committed
Address incorrect meta data C IO1 package
- Add punctuation to descriptions. - Add missing descriptions.
1 parent 23a4f4c commit f83c0fa
Copy full SHA for f83c0fa

File tree

5 files changed

+10
-8
lines changed
Filter options

5 files changed

+10
-8
lines changed

‎c/cert/src/rules/FIO39-C/DoNotAlternatelyIOFromAStreamWithoutPositioning.ql

Copy file name to clipboardExpand all lines: c/cert/src/rules/FIO39-C/DoNotAlternatelyIOFromAStreamWithoutPositioning.ql
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* @id c/cert/do-not-alternately-io-from-a-stream-without-positioning
33
* @name FIO39-C: Do not alternately input and output from a stream without an intervening flush or positioning call
4-
* @description
4+
* @description Do not alternately input and output from a stream without an intervening flush or
5+
* positioning call. This may result in undefined behavior.
56
* @kind problem
67
* @precision very-high
78
* @problem.severity error

‎c/cert/src/rules/FIO42-C/CloseFilesWhenTheyAreNoLongerNeeded.ql

Copy file name to clipboardExpand all lines: c/cert/src/rules/FIO42-C/CloseFilesWhenTheyAreNoLongerNeeded.ql
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* @id c/cert/close-files-when-they-are-no-longer-needed
33
* @name FIO42-C: Close files when they are no longer needed
4-
* @description
4+
* @description Open files must be closed before the lifetime of the last pointer to the file-object
5+
* has ended to prevent resource exhaustion and data loss issues.
56
* @kind problem
67
* @precision very-high
78
* @problem.severity error

‎c/cert/src/rules/FIO46-C/UndefinedBehaviorAccessingAClosedFile.ql

Copy file name to clipboardExpand all lines: c/cert/src/rules/FIO46-C/UndefinedBehaviorAccessingAClosedFile.ql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @id c/cert/undefined-behavior-accessing-a-closed-file
33
* @name FIO46-C: Do not access a closed file
4-
* @description Do not access a closed file
4+
* @description Do not access a closed file.
55
* @kind problem
66
* @precision high
77
* @problem.severity error

‎c/misra/src/rules/RULE-22-6/FileUsedAfterClosed.ql

Copy file name to clipboardExpand all lines: c/misra/src/rules/RULE-22-6/FileUsedAfterClosed.ql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @id c/misra/file-used-after-closed
33
* @name RULE-22-6: The value of a pointer to a FILE shall not be used after the associated stream has been closed
4-
* @description A closed FILE is accessed
4+
* @description A closed FILE is accessed.
55
* @kind problem
66
* @precision very-high
77
* @problem.severity error

‎rule_packages/c/IO1.json

Copy file name to clipboardExpand all lines: rule_packages/c/IO1.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
},
6666
"queries": [
6767
{
68-
"description": "",
68+
"description": "Do not alternately input and output from a stream without an intervening flush or positioning call. This may result in undefined behavior.",
6969
"kind": "problem",
7070
"name": "Do not alternately input and output from a stream without an intervening flush or positioning call",
7171
"precision": "very-high",
@@ -88,7 +88,7 @@
8888
},
8989
"queries": [
9090
{
91-
"description": "",
91+
"description": "Open files must be closed before the lifetime of the last pointer to the file-object has ended to prevent resource exhaustion and data loss issues.",
9292
"kind": "problem",
9393
"name": "Close files when they are no longer needed",
9494
"precision": "very-high",
@@ -111,7 +111,7 @@
111111
},
112112
"queries": [
113113
{
114-
"description": "Do not access a closed file",
114+
"description": "Do not access a closed file.",
115115
"kind": "problem",
116116
"name": "Do not access a closed file",
117117
"precision": "high",
@@ -136,7 +136,7 @@
136136
},
137137
"queries": [
138138
{
139-
"description": "A closed FILE is accessed",
139+
"description": "A closed FILE is accessed.",
140140
"kind": "problem",
141141
"name": "The value of a pointer to a FILE shall not be used after the associated stream has been closed",
142142
"precision": "very-high",

0 commit comments

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