mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Update cpp/ql/lib/semmle/code/cpp/commons/Buffer.qll
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9fa3ff74cc
commit
839640a82f
@@ -30,7 +30,7 @@ predicate memberMayBeVarSize(Class c, MemberVariable v) {
|
||||
* `this` expression.
|
||||
*/
|
||||
private Class getRootType(FieldAccess fa) {
|
||||
// If the object is accessed inside a ember function then the root will
|
||||
// If the object is accessed inside a member function then the root will
|
||||
// be a(n implicit) `this`. And the root type will be the type of `this`.
|
||||
exists(VariableAccess root |
|
||||
root = fa.getQualifier*() and
|
||||
|
||||
Reference in New Issue
Block a user