mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +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)
|
f.(ArrayFunction).hasArrayInput(i)
|
||||||
or
|
or
|
||||||
f instanceof StrcatFunction and i = 0
|
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