Skip to content

Commit d0739b2

Browse files
authored
Restricted signature input nodes to verify nodes
1 parent 5fe17ab commit d0739b2

File tree

1 file changed

+2
-1
lines changed
  • shared/quantum/codeql/quantum/experimental

1 file changed

+2
-1
lines changed

shared/quantum/codeql/quantum/experimental/Model.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,8 @@ module CryptographyBase<LocationSig Location, InputSig<Location> Input> {
21732173
override NodeBase getChild(string key) {
21742174
result = super.getChild(key)
21752175
or
2176-
// [KNOWN_OR_UNKNOWN]
2176+
// [KNOWN_OR_UNKNOWN] - only if we know the type is verify
2177+
this.getKeyOperationSubtype() = TVerifyMode() and
21772178
key = "Signature" and
21782179
if exists(this.getASignatureArtifact())
21792180
then result = this.getASignatureArtifact()

0 commit comments

Comments
 (0)