mirror of
https://github.com/Z3Prover/z3
synced 2025-05-08 08:15:47 +00:00
fix a couple hundred deref-after-free bugs due to .c_str() on a temporary string
This commit is contained in:
parent
48a9defb0d
commit
23e6adcad3
64 changed files with 248 additions and 229 deletions
|
@ -288,7 +288,7 @@ static void mk_var(unsigned x, app_ref& v) {
|
|||
arith_util a(m);
|
||||
std::ostringstream strm;
|
||||
strm << "v" << x;
|
||||
v = m.mk_const(symbol(strm.str().c_str()), a.mk_real());
|
||||
v = m.mk_const(symbol(strm.str()), a.mk_real());
|
||||
}
|
||||
|
||||
static void mk_term(vector<var_t> const& vars, rational const& coeff, app_ref& term) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue