mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
fix assorted undefined behaviors caught by clang
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
This commit is contained in:
parent
25a29bf5b0
commit
c577ab361b
9 changed files with 81 additions and 21 deletions
|
@ -542,6 +542,7 @@ namespace polynomial {
|
|||
increase_capacity(sz * 2);
|
||||
SASSERT(sz < m_capacity);
|
||||
m_ptr->m_size = sz;
|
||||
if (sz == 0) return;
|
||||
memcpy(m_ptr->m_powers, pws, sizeof(power) * sz);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue