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

Fix matchers for net fail #7

Open
wants to merge 1 commit into
base: cf/experiments
Choose a base branch
from
Open

Conversation

ftc
Copy link
Member

@ftc ftc commented Mar 20, 2024

Here is how to fix the constructor matcher for the network failure benchmark. You may want to manually copy the changes over rather than merge this due to the messiness of Jupyter notebooks. A few notes:

  • you always have to have some parameters in an abstract message. e.g. val construct_req = AbsMsg(CIExit, SubClassMatcher(Set("com.android.volley.toolbox.StringRequest"), ".*<init>.*", "consRequest"),TopVal::Nil) instead of just Nil as the last argument. I will make a separate pull request to throw an appropriate error.

  • The line numbers in this method are all wrong when Soot loads it so the Reachable query isn't behaving right. I swapped it to a DisallowedCallin to work around this limitation.

  • You had a typo. "com.android.volley.StringRequest" should be "com.android.volley.toolbox.StringRequest"

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 this pull request may close these issues.

1 participant