Skip to content

Commit 972cd2b

Browse files
committed
C#: Restrict cs/thread-unsafe-icryptotransform-field-in-class to source fields
1 parent 10be890 commit 972cd2b

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)