Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3610d35 commit 19a53cdCopy full SHA for 19a53cd
1 file changed
cpp/ql/src/semmle/code/cpp/commons/Buffer.qll
@@ -27,7 +27,7 @@ predicate memberMayBeVarSize(Class c, MemberVariable v) {
27
v = c.getCanonicalMember(i) and
28
29
// v is an array of size at most 1
30
- v.getType().getUnspecifiedType().(ArrayType).getSize() <= 1
+ v.getType().getUnspecifiedType().(ArrayType).getArraySize() <= 1
31
) and (
32
exists(SizeofOperator so |
33
// `sizeof(c)` is taken
0 commit comments