mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
[zlaski/memset-model] Ctrl+Shift+F.
This commit is contained in:
@@ -41,6 +41,7 @@ class MemsetFunction extends ArrayFunction, DataFlowFunction, AliasFunction, Sid
|
||||
}
|
||||
|
||||
override predicate hasOnlySpecificReadSideEffects() { any() }
|
||||
|
||||
override predicate hasOnlySpecificWriteSideEffects() { any() }
|
||||
|
||||
override predicate hasSpecificWriteSideEffect(ParameterIndex i, boolean buffer, boolean mustWrite) {
|
||||
@@ -48,6 +49,7 @@ class MemsetFunction extends ArrayFunction, DataFlowFunction, AliasFunction, Sid
|
||||
}
|
||||
|
||||
override ParameterIndex getParameterSizeIndex(ParameterIndex i) {
|
||||
i = 0 and if hasGlobalName("bzero") then result = 1 else result = 2
|
||||
i = 0 and
|
||||
if hasGlobalName("bzero") then result = 1 else result = 2
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user