Skip to content

Commit

Permalink
Merge pull request #17654 from michaelnebel/modelgen/mixedbugfix
Browse files Browse the repository at this point in the history
C#/Java: Only use heuristic if no content based model exist (in mixed mode).
  • Loading branch information
michaelnebel authored Oct 4, 2024
2 parents 8542992 + 51623c3 commit c629867
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c629867

Please sign in to comment.