mirror of
https://github.com/Z3Prover/z3
synced 2025-05-14 11:14:43 +00:00
Fix memory smash on double free of clauses
Signed-off-by: nikolajbjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a96a9a076d
commit
0d9f949ab2
6 changed files with 32 additions and 1 deletions
|
@ -128,6 +128,11 @@ namespace sat {
|
|||
if (j == 0) {
|
||||
// empty clause
|
||||
m_solver.set_conflict(justification());
|
||||
for (; it != end; ++it) {
|
||||
*it2 = *it;
|
||||
it2++;
|
||||
}
|
||||
cs.set_end(it2);
|
||||
return;
|
||||
}
|
||||
TRACE("elim_eqs", tout << "after removing duplicates: " << c << " j: " << j << "\n";);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue