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

Obtain fuzzing constants from method annotations #2490

Open
EgorkaKulikov opened this issue Aug 9, 2023 · 0 comments
Open

Obtain fuzzing constants from method annotations #2490

EgorkaKulikov opened this issue Aug 9, 2023 · 0 comments
Assignees
Labels
comp-fuzzing Issue is related to the fuzzing comp-spring Issue is related to Spring projects support ctg-enhancement New feature, improvement or change request

Comments

@EgorkaKulikov
Copy link
Collaborator

Description

Current implementation of Fuzzer allows to collect constants that can be found in Jimple body only. However, there are some additional sources of useful values, that can not be found in Soot - for example, method annotations.

Expected behaviour

Consider the following code snippet:

@GetMapping("/api/foos")
@ResponseBody
public String getFoos(@RequestParam(defaultValue = "test") String id) {
    return "ID: " + id;
}

The constant test should be collected for further test generation.

Context

Maxim says we can collect this constants not only from ExceptionalUnitGraph, this is ok for him.

@EgorkaKulikov EgorkaKulikov added ctg-enhancement New feature, improvement or change request comp-fuzzing Issue is related to the fuzzing comp-spring Issue is related to Spring projects support labels Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-fuzzing Issue is related to the fuzzing comp-spring Issue is related to Spring projects support ctg-enhancement New feature, improvement or change request
Projects
Status: Todo
Development

No branches or pull requests

2 participants