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:
Mathias Vorreiter Pedersen
2025-01-30 15:31:36 +00:00
committed by GitHub
parent 9fa3ff74cc
commit 839640a82f

View File

@@ -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