mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Merge pull request #17654 from michaelnebel/modelgen/mixedbugfix
C#/Java: Only use heuristic if no content based model exist (in mixed mode).
This commit is contained in:
@@ -17,12 +17,12 @@ private int getNumMadModeledApis(string package, string provenance, string apiSu
|
||||
(
|
||||
// "auto-only"
|
||||
not sc.hasManualModel() and
|
||||
sc.hasProvenance("df-generated") and
|
||||
sc.hasGeneratedModel() and
|
||||
provenance = "generated"
|
||||
or
|
||||
sc.hasManualModel() and
|
||||
(
|
||||
if sc.hasProvenance("df-generated")
|
||||
if sc.hasGeneratedModel()
|
||||
then
|
||||
// "both"
|
||||
provenance = "both"
|
||||
|
||||
@@ -881,7 +881,7 @@ module MakeModelGenerator<
|
||||
string captureMixedFlow(DataFlowSummaryTargetApi api, boolean lift) {
|
||||
result = ContentSensitive::captureFlow(api, lift)
|
||||
or
|
||||
not exists(ContentSensitive::captureFlow(api, lift)) and
|
||||
not exists(ContentSensitive::captureFlow(api, _)) and
|
||||
result = captureFlow(api) and
|
||||
lift = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user