Skip to content

Commit bd07b8a

Browse files
committed
Making getter flow through 'copy' more general (copy can appear in any part of the call name now.
1 parent 6a4659f commit bd07b8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/ql/lib/experimental/Quantum/OpenSSL/OpenSSLAlgorithmGetter.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CopyAndDupAlgorithmPassthroughCall extends AlgorithmPassthroughCall {
3131
// Assume flow in and out is asIndirectExpr or asDefinitingArgument since a pointer is assumed
3232
// to be involved
3333
// NOTE: not attempting to detect openssl specific copy/dup functions, but anything suspected to be copy/dup
34-
this.getTarget().getName().toLowerCase().matches(["%_dup", "%_copy"]) and
34+
this.getTarget().getName().toLowerCase().matches(["%_dup%", "%_copy%"]) and
3535
exists(Expr inArg, Type t |
3636
inArg = this.getAnArgument() and t = inArg.getUnspecifiedType().stripType()
3737
|

0 commit comments

Comments
 (0)