mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
CPP: Remove now redundant special cases.
This commit is contained in:
@@ -80,14 +80,6 @@ predicate functionArgumentMustBeNullTerminated(Function f, int i) {
|
||||
f.(ArrayFunction).hasArrayInput(i)
|
||||
or
|
||||
f instanceof StrcatFunction and i = 0
|
||||
or
|
||||
f.hasName("strlen") and i = 0
|
||||
or
|
||||
f.hasName("strcmp") and i in [0 .. 1]
|
||||
or
|
||||
f.hasName("strchr") and i = 0
|
||||
or
|
||||
f.hasName("strstr") and i in [0 .. 1]
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user