mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
C++: fix alias model for smart pointer setters
This commit is contained in:
@@ -146,8 +146,7 @@ private class SmartPtrSetterFunction extends MemberFunction, AliasFunction, Side
|
||||
}
|
||||
|
||||
private FunctionInput getPointerInput() {
|
||||
exists(Parameter param0 |
|
||||
param0 = this.getParameter(0) and
|
||||
exists(Parameter param0 | param0 = this.getParameter(0) |
|
||||
(
|
||||
param0.getUnspecifiedType().(ReferenceType).getBaseType() instanceof SmartPtr and
|
||||
if this.getParameter(1).getUnspecifiedType() instanceof PointerType
|
||||
|
||||
Reference in New Issue
Block a user