Skip to content

Commit d38975b

Browse files
committed
C++: Use getType() instead of getUnderlyingType()
1 parent 7aed4c3 commit d38975b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Security/CWE/CWE-120/BadlyBoundedWrite.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ where
2626
bw.hasExplicitLimit() and // has an explicit size limit
2727
destSize = max(getBufferSize(bw.getDest(), _)) and
2828
bw.getExplicitLimit() > destSize and // but it's larger than the destination
29-
not bw.getDest().getUnderlyingType().stripType() instanceof ErroneousType // destSize may be incorrect
29+
not bw.getDest().getType().stripType() instanceof ErroneousType // destSize may be incorrect
3030
select bw,
3131
"This '" + bw.getBWDesc() + "' operation is limited to " + bw.getExplicitLimit() +
3232
" bytes but the destination is only " + destSize + " bytes."

0 commit comments

Comments
 (0)