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 7aed4c3 commit d38975bCopy full SHA for d38975b
cpp/ql/src/Security/CWE/CWE-120/BadlyBoundedWrite.ql
@@ -26,7 +26,7 @@ where
26
bw.hasExplicitLimit() and // has an explicit size limit
27
destSize = max(getBufferSize(bw.getDest(), _)) and
28
bw.getExplicitLimit() > destSize and // but it's larger than the destination
29
- not bw.getDest().getUnderlyingType().stripType() instanceof ErroneousType // destSize may be incorrect
+ not bw.getDest().getType().stripType() instanceof ErroneousType // destSize may be incorrect
30
select bw,
31
"This '" + bw.getBWDesc() + "' operation is limited to " + bw.getExplicitLimit() +
32
" bytes but the destination is only " + destSize + " bytes."
0 commit comments