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

Skip to content

Commit d1e040e

Browse files
committed
C++: Bug fix for subclasses.
1 parent a9b2876 commit d1e040e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ private Element interpretElement0(
406406
// Member functions
407407
exists(Class namedClass, Class classWithMethod, Function method |
408408
classWithMethod = method.getClassAndName(name) and
409-
classWithMethod.getNamespace().getQualifiedName() = namespace and
409+
namedClass.getNamespace().getQualifiedName() = namespace and
410410
namedClass.getName() = type and
411411
matchesSignature(method, signature) and
412412
result = method
@@ -425,7 +425,7 @@ private Element interpretElement0(
425425
exists(Class namedClass, Class classWithMember, MemberVariable member |
426426
member.getName() = name and
427427
member = classWithMember.getAMember() and
428-
classWithMember.getNamespace().getQualifiedName() = namespace and
428+
namedClass.getNamespace().getQualifiedName() = namespace and
429429
namedClass.getName() = type and
430430
result = member
431431
|

0 commit comments

Comments
 (0)