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

jazzer.instrument=com.tejasoft.edu.oom.tests.TestOOMAnalyzer #762

Open
nagkumar opened this issue Jun 10, 2023 · 2 comments
Open

jazzer.instrument=com.tejasoft.edu.oom.tests.TestOOMAnalyzer #762

nagkumar opened this issue Jun 10, 2023 · 2 comments

Comments

@nagkumar
Copy link

nagkumar commented Jun 10, 2023

jazzer.instrument property not supporting reg-ex such as

jazzer.instrument=com.tejasoft.*.oom.tests.TestOOMAnalyzer

jazzer.instrument=com.tejasoft.**.TestOOMAnalyzer

jazzer.instrument=**.TestOOM*

only FQN is supported such as

jazzer.instrument=com.tejasoft.edu.oom.tests.TestOOMAnalyzer or
jazzer.instrument=com.tejasoft.edu.oom.tests.TestOOM*

error it gives are

jazzer.instrument=com.tejasoft.edu.oom.tests.TestOOMAnalyze
image

image image
@fmeum
Copy link
Contributor

fmeum commented Jul 5, 2023

This is unfortunately pretty tricky to resolve: Supporting regexes instead of this more limited form of glob patterns would require the instrumentation logic to use java.util.regex, which in turn means that we may run into weird circularity issues when trying to fuzz or instrument this package (which we do to track progress through regex matches).

While it's possible that this would now be simpler to do than when this workaround was introduced, it's also rather unusual to instrument all classes with a certain naming pattern, but across packages. Do you have a real use case for this? If you only instrument a test class, then the fuzzer will not have visibility into your actual production code.

@ghost
Copy link

ghost commented Feb 26, 2024

@nagkumar - did you figure out a workaround or abandon the project? A lot has changed on our side since you opened this issue in June. Ping me to discuss?
david[dot]merian [at] code-intelligence[dot]com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants