CPP: Fix type logic.

This commit is contained in:
Geoffrey White
2018-12-13 09:48:34 +00:00
parent c904a338f7
commit e443eb8889
3 changed files with 4 additions and 5 deletions

View File

@@ -15,9 +15,9 @@ import IncorrectPointerScalingCommon
private predicate isCharSzPtrExpr(Expr e) {
exists (PointerType pt
| pt = e.getFullyConverted().getUnderlyingType()
| pt.getBaseType().getUnspecifiedType() instanceof CharType
or pt.getBaseType().getUnspecifiedType() instanceof VoidType)
| pt = e.getFullyConverted().getType().getUnspecifiedType()
| pt.getBaseType() instanceof CharType
or pt.getBaseType() instanceof VoidType)
}
from Expr sizeofExpr, Expr e