We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd8a5d7 commit 9105375Copy full SHA for 9105375
cpp/ql/lib/semmle/code/cpp/commons/Buffer.qll
@@ -57,7 +57,7 @@ private int isSource(Expr bufferExpr, Element why) {
57
exists(Type bufferType |
58
// buffer is the address of a variable
59
why = bufferExpr.(AddressOfExpr).getAddressable() and
60
- bufferType = why.(Variable).getType() and
+ bufferType = why.(Variable).getUnspecifiedType() and
61
result = bufferType.getSize() and
62
not bufferType instanceof ReferenceType and
63
not any(Union u).getAMemberVariable() = why
0 commit comments