mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
Merge pull request #453 from delcypher/fix_clause_allocator_bound_check
Fix incorrect (off by one) bound check in clause_allocator
This commit is contained in:
commit
16ced7cda5
|
@ -145,7 +145,8 @@ namespace sat {
|
|||
return i;
|
||||
i = m_num_segments;
|
||||
m_num_segments++;
|
||||
if (i > c_max_segments)
|
||||
SASSERT(m_num_segments <= c_max_segments);
|
||||
if (i >= c_max_segments)
|
||||
throw default_exception("segment out of range");
|
||||
m_segments[i] = ptr;
|
||||
return i;
|
||||
|
|
Loading…
Reference in a new issue