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 in is_Id (libFirm.so) due to misparse #56

Open
ibara opened this issue Jan 24, 2021 · 0 comments
Open

Segfault in is_Id (libFirm.so) due to misparse #56

ibara opened this issue Jan 24, 2021 · 0 comments

Comments

@ibara
Copy link
Contributor

ibara commented Jan 24, 2021

Hello --

The following code causes a segfault in is_Id.
Ideally, cparser should reject this code on line 6 (while (c[1])) since it makes no sense in context.

Thanks!

a;
double b;
c() {
  if (a)
    if (0 % 0)
      while (c[1])
        ;
  while ((unsigned long)b)
    ;
}
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