Introduce utbot taint analysis#1966
Merged
Merged
Conversation
8b446b0 to
a2a9c32
Compare
ef50dba to
90ecb92
Compare
90ecb92 to
501bb1c
Compare
3a9612b to
9a52264
Compare
d82460c to
0bccb4f
Compare
b364e6c to
0698fb3
Compare
CaelmBleidd
requested changes
Jun 8, 2023
alisevych
reviewed
Jun 8, 2023
alisevych
reviewed
Jun 8, 2023
Member
|
As an enhancement suggestion: |
0698fb3 to
9f2d100
Compare
CaelmBleidd
requested changes
Jun 9, 2023
CaelmBleidd
left a comment
Member
There was a problem hiding this comment.
Please, add documentation for the added options
fbc5d4e to
a142d8d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
All changes are under
UtSettings.useTaintAnalysisflag which isfalseby default (the user can change it in idea settings by checking the box "Use taint analysis")Taint analysis configuration are provided from resources
utbot-framework/src/main/resources/taint/config.yamland from custom user's file<path-to-user-project>/.idea/utbot-taint-config.yaml. To reduce parsing time, the first config is cached to the%TEMP%/UTBot/directoryThe generated test which leads to
TaintAnalysisErrorlooks likeThe problems view tab with taint error
How to test
Automated tests
Manual tests
.idea/utbot-taint-config.yamlSample code:
Sample config:
Self-check list