Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3719e10

Browse files
committed
C++: Add a case for global or namespace variables in 'interpretElement0'.
1 parent 52a1d90 commit 3719e10

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cpp/ql/lib/semmle/code/cpp/dataflow/ExternalFlow.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,12 @@ private Element interpretElement0(
434434
subtypes = false and
435435
classWithMember = namedClass
436436
)
437+
or
438+
// Global or namespace variables
439+
signature = "" and
440+
type = "" and
441+
subtypes = false and
442+
result = any(GlobalOrNamespaceVariable v | v.hasQualifiedName(namespace, name))
437443
)
438444
}
439445

0 commit comments

Comments
 (0)