Skip to content

Commit

Permalink
Merge pull request #18178 from hvitved/csharp/unsafe-crypto-transform…
Browse files Browse the repository at this point in the history
…-from-source

C#: Restrict `cs/thread-unsafe-icryptotransform-field-in-class` to source fields
  • Loading branch information
hvitved authored Dec 3, 2024
2 parents 61cb03e + 972cd2b commit 6b7522f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions csharp/ql/src/Likely Bugs/ThreadUnsafeICryptoTransform.ql
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class ICryptoTransform extends ValueOrRefType {
}

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

0 comments on commit 6b7522f

Please sign in to comment.