cparser icon indicating copy to clipboard operation
cparser copied to clipboard

Segfault in is_Id (libFirm.so) due to misparse

Open ibara opened this issue 4 years ago • 0 comments

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)
    ;
}

ibara avatar Jan 24 '21 01:01 ibara