mirror of
https://github.com/Z3Prover/z3
synced 2026-01-29 21:38:44 +00:00
Fix segfault in dioph_eq.cpp by adding bounds check
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
b5202c65c0
commit
522aa69e09
2 changed files with 9 additions and 2 deletions
|
|
@ -1094,11 +1094,11 @@ namespace lp {
|
|||
|
||||
recalculate_entry(ei);
|
||||
|
||||
if (m_e_matrix.m_columns.back().size() == 0) {
|
||||
if (!m_e_matrix.m_columns.empty() && m_e_matrix.m_columns.back().size() == 0) {
|
||||
m_e_matrix.m_columns.pop_back();
|
||||
m_var_register.shrink(m_e_matrix.column_count());
|
||||
}
|
||||
if (m_l_matrix.m_columns.back().size() == 0)
|
||||
if (!m_l_matrix.m_columns.empty() && m_l_matrix.m_columns.back().size() == 0)
|
||||
m_l_matrix.m_columns.pop_back();
|
||||
}
|
||||
remove_irrelevant_fresh_defs();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue