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 early-out-at-end targeting ends of nested blocks in loops #219

Open
MattWindsor91 opened this issue Sep 24, 2020 · 0 comments
Open

Fix early-out-at-end targeting ends of nested blocks in loops #219

MattWindsor91 opened this issue Sep 24, 2020 · 0 comments
Labels
Area:Fuzzer Specifically affecting the program mutator Type:Bug Something isn't working

Comments

@MattWindsor91
Copy link
Collaborator

I'm a silly billy. I've made the early-out-at-end action target paths on which the In_loop flag is active. This is not the same as 'innermost block is loop'; it is, in fact, 'any block in the path is a loop', and as such it results in things like

while (A) {
  if (B) {
    C;
    // TARGET HERE
  }
  D;
}

Clearly this isn't right; if we insert a continue at the given position, the semantics will be wrong.

This is a fuzzer bug, but, again, it's one where the solution will need some creative thinking. We need a way of doing one of the following:

  • being able to cancel observed flags (this would have weird semantics, as it would only work well with flags in positive positions);
  • being able to specify (positive-only) flag checks on the inmost block inside a path filter (bit convoluted);
  • attaching block requirements to anchors (a bit strange);
  • something else?
@MattWindsor91 MattWindsor91 added Type:Bug Something isn't working Area:Fuzzer Specifically affecting the program mutator labels Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Fuzzer Specifically affecting the program mutator Type:Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant