gnucap-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnucap-devel] infinite loop in spice parser


From: Felix Salfelder
Subject: [Gnucap-devel] infinite loop in spice parser
Date: Fri, 29 Mar 2013 10:07:33 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

Hi Al, hi list.

playing with spicelib, i found the parser hanging at
gnucap-spice>C1 0 1 2;

while its not exceptionally clever to place that semicolon, it's still a
gnucap bug.

i fixed it with

     cmd >> node_name;
+    if(spots.back() == cmd.cursor()) {
+      throw Exception("what's this?");
+    }
     spots.push_back(cmd.cursor());

in count_ports. now i get
gnucap-spice>C1 0 1 2;
C1 0 1 2;
        ^ ? what's this?

regards
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]