Skip to content

Commit 38b66e5

Browse files
committed
C++: Fix a few type errors.
1 parent d40322f commit 38b66e5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cpp/ql/lib/experimental/cryptography/modules/OpenSSL.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ module LiteralAlgorithmTracerConfig implements DataFlow::ConfigSig {
8787
// False positives in OpenSSL also observed for CRYPTO_strndup (filtering any CRYPTO_* function)
8888
// due to setting a null byte in the string
8989
(
90-
isPossibleOpenSSLFunction(source.getEnclosingCallable())
90+
isPossibleOpenSSLFunction(source.getFunction())
9191
implies
9292
(
93-
not source.getEnclosingCallable().getName().matches("OBJ_%") and
94-
not source.getEnclosingCallable().getName().matches("CRYPTO_%")
93+
not source.getFunction().getName().matches("OBJ_%") and
94+
not source.getFunction().getName().matches("CRYPTO_%")
9595
)
9696
)
9797
}

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/ProductFlow.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,8 @@ module ProductFlow {
587587

588588
pragma[nomagic]
589589
private predicate interprocEdge1(
590-
Declaration predDecl, Declaration succDecl, Flow1::PathNode pred1, Flow1::PathNode succ1,
591-
TKind kind
590+
DataFlowCallable predDecl, DataFlowCallable succDecl, Flow1::PathNode pred1,
591+
Flow1::PathNode succ1, TKind kind
592592
) {
593593
Flow1::PathGraph::edges(pred1, succ1, _, _) and
594594
predDecl != succDecl and
@@ -607,8 +607,8 @@ module ProductFlow {
607607

608608
pragma[nomagic]
609609
private predicate interprocEdge2(
610-
Declaration predDecl, Declaration succDecl, Flow2::PathNode pred2, Flow2::PathNode succ2,
611-
TKind kind
610+
DataFlowCallable predDecl, DataFlowCallable succDecl, Flow2::PathNode pred2,
611+
Flow2::PathNode succ2, TKind kind
612612
) {
613613
Flow2::PathGraph::edges(pred2, succ2, _, _) and
614614
predDecl != succDecl and
@@ -628,7 +628,7 @@ module ProductFlow {
628628
private predicate interprocEdgePair(
629629
Flow1::PathNode pred1, Flow2::PathNode pred2, Flow1::PathNode succ1, Flow2::PathNode succ2
630630
) {
631-
exists(Declaration predDecl, Declaration succDecl, TKind kind |
631+
exists(DataFlowCallable predDecl, DataFlowCallable succDecl, TKind kind |
632632
interprocEdge1(predDecl, succDecl, pred1, succ1, kind) and
633633
interprocEdge2(predDecl, succDecl, pred2, succ2, kind)
634634
)

0 commit comments

Comments
 (0)