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

* src/tgbaalgos/ Fix invalid read.

parent ad3ea61a
......@@ -71,9 +71,11 @@ namespace spot
if (need_new_trans)
unsigned i =
a->new_transition(state, t2.dst, cond, acc);
// Load t2.dst first, because t2 can be
// invalidated by new_transition().
auto dst = t2.dst;
auto i = a->new_transition(state, dst, cond, acc);
Supports Markdown
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