Skip to content

C#: Capture[Source|Sink]Models utility.#8482

Merged
michaelnebel merged 33 commits intogithub:mainfrom
michaelnebel:csharp/capturesourcesink-models
Mar 29, 2022
Merged

C#: Capture[Source|Sink]Models utility.#8482
michaelnebel merged 33 commits intogithub:mainfrom
michaelnebel:csharp/capturesourcesink-models

Conversation

@michaelnebel
Copy link
Copy Markdown
Contributor

In this PR we introduce two new utility queries including test-cases to capture

  • Source models based on existing sources.
  • Sink models based on existing sinks.

Note, that these queries can only identify new sources and sinks based on existing source and sinks.
It appears that there has only been (manually) identified a very limited set of sources and sinks for C#. This is an area, where we need further improvement.

@michaelnebel michaelnebel marked this pull request as ready for review March 18, 2022 14:25
@michaelnebel michaelnebel requested review from a team as code owners March 18, 2022 14:25
@michaelnebel michaelnebel added the no-change-note-required This PR does not need a change note label Mar 18, 2022
Comment thread csharp/ql/src/utils/model-generator/CaptureSinkModelsSpecific.qll Outdated
Comment thread java/ql/src/utils/model-generator/CaptureSinkModels.qll Outdated
Comment thread java/ql/src/utils/model-generator/CaptureSinkModels.qll Outdated
Comment thread java/ql/src/utils/model-generator/CaptureSinkModels.qll Outdated
Comment thread csharp/ql/src/utils/model-generator/CaptureSinkModelsSpecific.qll Outdated
Comment thread csharp/ql/src/utils/model-generator/CaptureSinkModelsSpecific.qll Outdated
Comment thread csharp/ql/src/utils/model-generator/CaptureSinkModels.qll Outdated
Comment thread csharp/ql/src/utils/model-generator/CaptureSourceModels.qll Outdated
@michaelnebel michaelnebel force-pushed the csharp/capturesourcesink-models branch from 3f74e9a to d9d15bc Compare March 24, 2022 13:39
@michaelnebel michaelnebel requested a review from hvitved March 24, 2022 15:02
Copy link
Copy Markdown
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more comments

Comment thread csharp/ql/src/utils/model-generator/internal/CaptureModels.qll Outdated
Comment thread csharp/ql/src/utils/model-generator/internal/CaptureModelsSpecific.qll Outdated
Comment thread csharp/ql/src/utils/model-generator/internal/CaptureModelsSpecific.qll Outdated
Comment thread csharp/ql/src/utils/model-generator/internal/CaptureModelsSpecific.qll Outdated
Comment thread csharp/ql/src/utils/model-generator/internal/CaptureModelsSpecific.qll Outdated
Comment thread csharp/ql/src/utils/model-generator/internal/ModelGeneratorUtilsSpecific.qll Outdated
Comment thread java/ql/src/utils/model-generator/internal/CaptureModelsSpecific.qll Outdated
Comment thread java/ql/src/utils/model-generator/internal/CaptureModelsSpecific.qll Outdated
Comment thread java/ql/src/utils/model-generator/internal/ModelGeneratorUtilsSpecific.qll Outdated
Comment thread java/ql/src/utils/model-generator/internal/ModelGeneratorUtilsSpecific.qll Outdated
@michaelnebel michaelnebel force-pushed the csharp/capturesourcesink-models branch from 1e91ca7 to a405a4d Compare March 29, 2022 06:58
@michaelnebel michaelnebel requested a review from hvitved March 29, 2022 06:59
Copy link
Copy Markdown
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one final comment.

Comment thread java/ql/lib/java.qll Outdated
hvitved
hvitved previously approved these changes Mar 29, 2022
@hvitved
Copy link
Copy Markdown
Contributor

hvitved commented Mar 29, 2022

Thanks for your patience, @michaelnebel .

@michaelnebel
Copy link
Copy Markdown
Contributor Author

Thanks for your patience, @michaelnebel .

Likewise! Thank you for being thorough!

@michaelnebel
Copy link
Copy Markdown
Contributor Author

@hvitved : You need to review again due to rebase (no changes was made since last approval and there were no rebase conflicts).

@michaelnebel michaelnebel merged commit c3ac5ab into github:main Mar 29, 2022
@michaelnebel michaelnebel deleted the csharp/capturesourcesink-models branch March 29, 2022 12:43
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.

2 participants