File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
c/common/src/codingstandards/c Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -968,6 +968,7 @@ module OOB {
968
968
/**
969
969
* Holds if `arg` refers to the number of characters excluding a null terminator
970
970
*/
971
+ bindingset [ fc, arg]
971
972
private predicate isArgNumCharacters ( BufferAccessLibraryFunctionCall fc , Expr arg ) {
972
973
exists ( int i |
973
974
arg = fc .getArgument ( i ) and
@@ -979,6 +980,7 @@ module OOB {
979
980
* Returns '1' if `arg` refers to the number of characters excluding a null terminator,
980
981
* otherwise '0' if `arg` refers to the number of characters including a null terminator.
981
982
*/
983
+ bindingset [ fc, arg]
982
984
private int argNumCharactersOffset ( BufferAccess fc , Expr arg ) {
983
985
if isArgNumCharacters ( fc , arg ) then result = 1 else result = 0
984
986
}
You can’t perform that action at this time.
0 commit comments