We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69785fc commit 035823cCopy full SHA for 035823c
cpp/ql/src/semmle/code/cpp/commons/Buffer.qll
@@ -28,7 +28,7 @@ predicate memberMayBeVarSize(Class c, MemberVariable v) {
28
v = c.getCanonicalMember(i) and
29
30
// v is an array of size at most 1
31
- v.getType().getUnspecifiedType().(ArrayType).getSize() <= 1
+ v.getType().getUnspecifiedType().(ArrayType).getArraySize() <= 1
32
) and (
33
exists(SizeofOperator so |
34
// `sizeof(c)` is taken
0 commit comments