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

Segfault 2 #56

Open
modulovalue opened this issue Oct 18, 2023 · 1 comment
Open

Segfault 2 #56

modulovalue opened this issue Oct 18, 2023 · 1 comment

Comments

@modulovalue
Copy link

modulovalue commented Oct 18, 2023

The following program is also segfaulting on my machine (cf. #55)

  // ...
  const program = r"""
void main() {
  b(() {
    var c = [];
    set.f(g.h);
    i(j, k(['l', 'm']));
  });
}
""";
  parser.parse(program);
  // ...

(@TimWhiting FYI) The segfault appears to have been fixed by changing the following line from:

return (result.cast(), units.length);

to:

  return (result.cast(), units.length + 1); 
@modulovalue
Copy link
Author

The proposed fix is incorrect.

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

No branches or pull requests

1 participant