Skip to content

Commit fcea369

Browse files
committed
CPP: Remove now redundant special cases.
1 parent 200545d commit fcea369

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cpp/ql/src/semmle/code/cpp/commons/NullTermination.qll

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,6 @@ predicate functionArgumentMustBeNullTerminated(Function f, int i) {
8080
f.(ArrayFunction).hasArrayInput(i)
8181
or
8282
f instanceof StrcatFunction and i = 0
83-
or
84-
f.hasName("strlen") and i = 0
85-
or
86-
f.hasName("strcmp") and i in [0 .. 1]
87-
or
88-
f.hasName("strchr") and i = 0
89-
or
90-
f.hasName("strstr") and i in [0 .. 1]
9183
}
9284

9385
/**

0 commit comments

Comments
 (0)