Skip to content

Commit 52b8a6b

Browse files
author
Max Schaefer
authored
Merge branch 'master' into js/invalid-entity-transcoding
2 parents 10166be + 939db5a commit 52b8a6b

File tree

89 files changed

+1313
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1313
-65
lines changed

change-notes/1.20/analysis-javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
| **Query** | **Tags** | **Purpose** |
88
|-----------------------------------------------|------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
9-
| Double escaping or unescaping (`js/double-escaping') | correctness, security, external/cwe/cwe-116 | Highlights potential double escaping or unescaping of special characters, indicating a possible violation of [CWE-116](https://cwe.mitre.org/data/definitions/116.html). Results are shown on LGTM by default. |
10-
9+
| Double escaping or unescaping (`js/double-escaping`) | correctness, security, external/cwe/cwe-116 | Highlights potential double escaping or unescaping of special characters, indicating a possible violation of [CWE-116](https://cwe.mitre.org/data/definitions/116.html). Results are shown on LGTM by default. |
10+
| Useless comparison test (`js/useless-comparison-test`) | correctness | Highlights code that is unreachable due to a numeric comparison that is always true or always false. |
1111

1212
## Changes to existing queries
1313

cpp/ql/src/JPL_C/LOC-2/Rule 03/ExitNonterminatingLoop.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* @kind problem
55
* @id cpp/jpl-c/exit-nonterminating-loop
66
* @problem.severity warning
7+
* @tags correctness
8+
* external/jpl
79
*/
810

911
import cpp

cpp/ql/src/JPL_C/LOC-2/Rule 03/LoopBounds.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @kind problem
66
* @id cpp/jpl-c/loop-bounds
77
* @problem.severity warning
8+
* @tags correctness
9+
* external/jpl
810
*/
911

1012
import cpp

cpp/ql/src/JPL_C/LOC-2/Rule 04/Recursion.ql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
* @kind problem
55
* @id cpp/jpl-c/recursion
66
* @problem.severity warning
7+
* @tags maintainability
8+
* readability
9+
* testability
10+
* external/jpl
711
*/
812

913
import cpp

cpp/ql/src/JPL_C/LOC-2/Rule 05/HeapMemory.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
* @description Dynamic memory allocation (using malloc() or calloc()) should be confined to the initialization routines of a program.
44
* @kind problem
55
* @id cpp/jpl-c/heap-memory
6-
* @problem.severity warning
6+
* @problem.severity recommendation
7+
* @tags resources
8+
* external/jpl
79
*/
810

911
import cpp

cpp/ql/src/JPL_C/LOC-2/Rule 07/ThreadSafety.ql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
* @kind problem
55
* @id cpp/jpl-c/thread-safety
66
* @problem.severity warning
7+
* @tags correctness
8+
* concurrency
9+
* external/jpl
710
*/
811

912
import cpp

cpp/ql/src/JPL_C/LOC-2/Rule 09/AvoidNestedSemaphores.ql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
* @kind problem
55
* @id cpp/jpl-c/avoid-nested-semaphores
66
* @problem.severity warning
7+
* @tags correctness
8+
* concurrency
9+
* external/jpl
710
*/
811

912
import Semaphores

cpp/ql/src/JPL_C/LOC-2/Rule 09/AvoidSemaphores.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
* @description The use of semaphores or locks to access shared data should be avoided.
44
* @kind problem
55
* @id cpp/jpl-c/avoid-semaphores
6-
* @problem.severity warning
6+
* @problem.severity recommendation
7+
* @tags concurrency
8+
* external/jpl
79
*/
810

911
import Semaphores

cpp/ql/src/JPL_C/LOC-2/Rule 09/OutOfOrderLocks.ql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
* @kind problem
55
* @id cpp/jpl-c/out-of-order-locks
66
* @problem.severity warning
7+
* @tags correctness
8+
* concurrency
9+
* external/jpl
710
*/
811

912
import Semaphores

cpp/ql/src/JPL_C/LOC-2/Rule 09/ReleaseLocksWhenAcquired.ql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
* @kind problem
55
* @id cpp/jpl-c/release-locks-when-acquired
66
* @problem.severity warning
7+
* @tags correctness
8+
* concurrency
9+
* external/jpl
710
*/
811

912
import Semaphores

0 commit comments

Comments
 (0)