mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
fix memory smash in euf completion
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
14f69c6c01
commit
f4b87b3763
|
@ -307,7 +307,7 @@ namespace euf {
|
|||
}
|
||||
};
|
||||
SASSERT(e);
|
||||
if (num_scopes() > 0)
|
||||
if (num_scopes() > 0 && m_canonical.size() > n->get_id())
|
||||
m_trail.push(vtrail(m_canonical, n->get_id()));
|
||||
m_canonical.setx(n->get_id(), e);
|
||||
m_epochs.setx(n->get_id(), m_epoch, 0);
|
||||
|
|
Loading…
Reference in a new issue