CPP: Add detail to the model.

This commit is contained in:
Geoffrey White
2020-01-17 16:45:17 +00:00
parent 77a3778eef
commit 200545d88c
3 changed files with 8 additions and 2 deletions

View File

@@ -44,6 +44,10 @@ class PureStrFunction extends AliasFunction, ArrayFunction, TaintFunction, SideE
getParameter(bufParam).getUnspecifiedType() instanceof PointerType
}
override predicate hasArrayWithNullTerminator(int bufParam) {
getParameter(bufParam).getUnspecifiedType() instanceof PointerType
}
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
exists(ParameterIndex i |
input.isParameter(i) and