another parser's bug (Infinite loop)

View: New views
1 Messages — Rating Filter:   Alert me  

another parser's bug (Infinite loop)

by Shigio Yamaguchi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
I might have found another bug.
The following code causes infinite loop.

        a(){}
        b(b,b)
        c(v,struct x *y, z);

Though this code seems to be improbable, it was drived
from FreeBSD kernel, and shortened.

[Reproduction method]

$ cflow --version
cflow (GNU cflow) 1.0
$ cflow test.h
(null):test.h:3: y/-1 redefined
(null):test.h:3: this is the place of previous definition
(null):test.h:3: y/-1 redefined
(null):test.h:3: this is the place of previous definition
(null):test.h:3: y/-1 redefined
(null):test.h:3: this is the place of previous definition
        .
        .
    (repearts)
        .
        .
(null):test.h:3: y/-1 redefined
(null):test.h:3: this is the place of previous definition
(null):^C
$ cat test.h
a(){}
b(b,b)
c(v,struct x *y, z);
$

Thank you for your quick response to my last report!
--
Shigio YAMAGUCHI <shigio@...> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


_______________________________________________
Bug-cflow mailing list
Bug-cflow@...
http://lists.gnu.org/mailman/listinfo/bug-cflow