Skip to content

Commit 6b7522f

Browse files
authored
Merge pull request github#18178 from hvitved/csharp/unsafe-crypto-transform-from-source
C#: Restrict `cs/thread-unsafe-icryptotransform-field-in-class` to source fields
2 parents 61cb03e + 972cd2b commit 6b7522f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

csharp/ql/src/Likely Bugs/ThreadUnsafeICryptoTransform.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class ICryptoTransform extends ValueOrRefType {
5252
}
5353

5454
from UnsafeField field
55+
where field.fromSource()
5556
select field,
5657
"Static field '" + field.getName() +
5758
"' contains a 'System.Security.Cryptography.ICryptoTransform' that could be used in an unsafe way."

0 commit comments

Comments
 (0)