Skip to content

Commit e9bbbb1

Browse files
committed
Add PWR004 and PWR005 to security
They help avoid common parallel programming pitfalls, such as data races, which are considered vulnerabilities by rules like CON43-C.
1 parent c2e1fcd commit e9bbbb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ designed to demonstrate:
3434
| [PWR001](Checks/PWR001/) | Pass global variables as function arguments | correctness, modernization, security | [CWE-1108](https://cwe.mitre.org/data/definitions/1108.html) | | [DCL19-C](https://wiki.sei.cmu.edu/confluence/display/c/DCL19-C.+Minimize+the+scope+of+variables+and+functions) | | ✓ | ✓ | ✓ | |
3535
| [PWR002](Checks/PWR002/) | Declare scalar variables in the smallest possible scope | correctness, modernization, security | [CWE-1126](https://cwe.mitre.org/data/definitions/1126.html) | | [DCL19-C](https://wiki.sei.cmu.edu/confluence/display/c/DCL19-C.+Minimize+the+scope+of+variables+and+functions) | | ✓ | | ✓ | |
3636
| [PWR003](Checks/PWR003/) | Explicitly declare pure functions | modernization, security | | [6.24](https://j3-fortran.org/doc/year/23/23-241.pdf), [6.32](https://j3-fortran.org/doc/year/23/23-241.pdf) | | | ✓ | ✓ | ✓ | |
37-
| [PWR004](Checks/PWR004/) | Declare OpenMP scoping for all variables | correctness | | | | | ✓ | ✓ | ✓ | |
38-
| [PWR005](Checks/PWR005/) | Disable default OpenMP scoping | correctness | | | | | ✓ | ✓ | ✓ | |
37+
| [PWR004](Checks/PWR004/) | Declare OpenMP scoping for all variables | correctness, security | | | | | ✓ | ✓ | ✓ | |
38+
| [PWR005](Checks/PWR005/) | Disable default OpenMP scoping | correctness, security | | | | | ✓ | ✓ | ✓ | |
3939
| [PWR006](Checks/PWR006/) | Avoid privatization of read-only variables | optimization | | | | | ✓ | ✓ | ✓ | |
4040
| [PWR007](Checks/PWR007/) | Disable the implicit declaration of variables and procedures | correctness, modernization, security | [CWE-628](https://cwe.mitre.org/data/definitions/628.html) | [6.17](https://j3-fortran.org/doc/year/23/23-241.pdf), [6.18](https://j3-fortran.org/doc/year/23/23-241.pdf), [6.19](https://j3-fortran.org/doc/year/23/23-241.pdf), [6.21](https://j3-fortran.org/doc/year/23/23-241.pdf), [6.54](https://j3-fortran.org/doc/year/23/23-241.pdf), [7.2](https://j3-fortran.org/doc/year/23/23-241.pdf) | [DCL07-C](https://wiki.sei.cmu.edu/confluence/display/c/DCL07-C.+Include+the+appropriate+type+information+in+function+declarators), [DCL31-C](https://wiki.sei.cmu.edu/confluence/display/c/DCL31-C.+Declare+identifiers+before+using+them), [EXP37-C](https://wiki.sei.cmu.edu/confluence/display/c/EXP37-C.+Call+functions+with+the+correct+number+and+type+of+arguments) | | | ✓ | | ✓[^1] |
4141
| [PWR008](Checks/PWR008/) | Declare the intent for each procedure argument | correctness, modernization, security | [CWE-374](https://cwe.mitre.org/data/definitions/374.html) | [6.32](https://j3-fortran.org/doc/year/23/23-241.pdf), [6.65](https://j3-fortran.org/doc/year/23/23-241.pdf) | [DCL13-C](https://wiki.sei.cmu.edu/confluence/display/c/DCL13-C.+Declare+function+parameters+that+are+pointers+to+values+not+changed+by+the+function+as+const) | | | ✓ | | ✓[^1] |

0 commit comments

Comments
 (0)