Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soot Setup for Source Sink Confluence Analysis #3

Closed
LSinzker opened this issue Apr 14, 2020 · 2 comments · Fixed by #6
Closed

Soot Setup for Source Sink Confluence Analysis #3

LSinzker opened this issue Apr 14, 2020 · 2 comments · Fixed by #6

Comments

@LSinzker
Copy link
Collaborator

LSinzker commented Apr 14, 2020

With the current setup Soot optimizes the code before running the analysis, this way it ends up erasing variable references that have a constant attributed to them, preventing conflict detection by the analyzer if such attribution happens to be a line of interest, such as a Source or Sink (or left, right).
A case such as this:

public void foo(){
int x = 1;
int y = 2;

x = 10;     //left

y++;         //right

System.out.println(x+y);

}

Should yield a conflict, however, it doesn't.

@pauloborba
Copy link
Member

OK, good to know @LSinzker. As an example/test-case, it would be better to insert a separator (line) between //left and //right because without such separator we would have a merge conflict, so this case would not even reach our soot tool.

@LSinzker
Copy link
Collaborator Author

Thanks! Fixed.

@LSinzker LSinzker linked a pull request Apr 27, 2020 that will close this issue
pauloborba pushed a commit that referenced this issue Jul 28, 2020
pauloborba pushed a commit that referenced this issue Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants