Skip to content

Commit d1b6871

Browse files
committed
C++: Restrict type.
1 parent 005dfdf commit d1b6871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Security/CWE/CWE-311/CleartextTransmission.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ predicate encryptionFunction(Function f)
175175
.regexpMatch(".*(crypt|encode|decode|hash|securezero).*")
176176
}
177177

178-
predicate encryptionType(Type t)
178+
predicate encryptionType(UserType t)
179179
{
180180
t.getName().toLowerCase().regexpMatch(".*(crypt|encode|decode|hash|securezero).*")
181181
}

0 commit comments

Comments
 (0)