Skip to content

C#/Java: Introduce source and sink model generation sanitisers.#16759

Merged
michaelnebel merged 9 commits into
github:mainfrom
michaelnebel:modelgen/sourcesinkmodelgen
Jun 24, 2024
Merged

C#/Java: Introduce source and sink model generation sanitisers.#16759
michaelnebel merged 9 commits into
github:mainfrom
michaelnebel:modelgen/sourcesinkmodelgen

Conversation

@michaelnebel
Copy link
Copy Markdown
Contributor

@michaelnebel michaelnebel commented Jun 14, 2024

In this PR we restrict the source and sink model generation for C# and Java: If a value passes through an irrelevant type we consider the value sanitised (we do the same for summary model generation).

Furthermore, for C# we also severely limit the source model extrapolation and require that sources only propagate upwards in the call stack based on a unique callable path (to avoid unwanted virtual dispatch).

@github-actions github-actions Bot added the C# label Jun 14, 2024
@michaelnebel michaelnebel force-pushed the modelgen/sourcesinkmodelgen branch from c59d15e to d9765ec Compare June 14, 2024 11:47
@github-actions github-actions Bot added the Java label Jun 14, 2024
@michaelnebel michaelnebel force-pushed the modelgen/sourcesinkmodelgen branch from d9765ec to 2e05e88 Compare June 14, 2024 12:54
@michaelnebel michaelnebel added the no-change-note-required This PR does not need a change note label Jun 14, 2024
@michaelnebel michaelnebel marked this pull request as ready for review June 14, 2024 14:05
@michaelnebel michaelnebel requested review from a team as code owners June 14, 2024 14:05
@michaelnebel michaelnebel requested a review from hvitved June 17, 2024 11:01
@michaelnebel michaelnebel force-pushed the modelgen/sourcesinkmodelgen branch from 2e05e88 to aa962f9 Compare June 19, 2024 12:11
@michaelnebel michaelnebel merged commit 94d12ed into github:main Jun 24, 2024
@michaelnebel michaelnebel deleted the modelgen/sourcesinkmodelgen branch June 24, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C# Java no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants