Commit 0beb148b authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* src/tgbaalgos/closure.cc: Fix invalid read.

parent ad3ea61a
...@@ -71,9 +71,11 @@ namespace spot ...@@ -71,9 +71,11 @@ namespace spot
} }
if (need_new_trans) if (need_new_trans)
{ {
unsigned i = // Load t2.dst first, because t2 can be
a->new_transition(state, t2.dst, cond, acc); // invalidated by new_transition().
dst2trans[t2.dst].push_back(i); auto dst = t2.dst;
auto i = a->new_transition(state, dst, cond, acc);
dst2trans[dst].push_back(i);
todo.push_back(i); todo.push_back(i);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment