Skip to content

Commit ccc30ea

Browse files
committed
C#: Update change note
1 parent b6cf135 commit ccc30ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

change-notes/1.21/analysis-csharp.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ C# analysis now supports the extraction and analysis of many C# 8 features. For
88

99
| **Query** | **Tags** | **Purpose** |
1010
|-----------------------------------------------|------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
11-
| Thread-unsafe use of a static ICryptoTransform field (`cs/thread-unsafe-icryptotransform-field-in-class`) | concurrency, security, external/cwe/cwe-362 | Highlights classes with fields that make use of a static `System.Security.Cryptography.ICryptoTransform` object. Using these classes in concurrent threads is dangerous. It may result in an error and may also give incorrect results. Results are not shown on [LGTM](https://lgtm.com/rules/1507931833866/) by default. |
1211
| Thread-unsafe capturing of an ICryptoTransform object (`cs/thread-unsafe-icryptotransform-captured-in-lambda`) | concurrency, security, external/cwe/cwe-362 | Highlights instances of classes where a field of type `System.Security.Cryptography.ICryptoTransform` is captured by a lambda, and appears to be used in a thread initialization method. Results are not shown on [LGTM](https://lgtm.com/rules/1508141845995/) by default. |
1312

1413
## Changes to existing queries
1514

1615
| **Query** | **Expected impact** | **Change** |
1716
|------------------------------|------------------------|-----------------------------------|
1817
| Constant condition (`cs/constant-condition`) | Fewer false positive results | The query now ignores code where the `null` value is in a conditional expression on the left hand side of a null-coalescing expression. For example, in `(a ? b : null) ?? c`, `null` is not considered to be a constant condition. |
18+
| Thread-unsafe use of a static ICryptoTransform field (`cs/thread-unsafe-icryptotransform-field-in-class`) | Fewer false positive results | The criteria for a result has changed to include nested properties, nested fields, and collections. The format of the alert message has changed to highlight the static field. The query name has been updated. |
1919
| Useless upcast (`cs/useless-upcast`) | Fewer false positive results | The query now ignores code where the upcast is used to disambiguate the target of a constructor call. |
2020

2121
## Changes to code extraction

0 commit comments

Comments
 (0)