mirror of
https://github.com/Z3Prover/z3
synced 2025-08-14 14:55:25 +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
|
@ -234,9 +234,10 @@ namespace smt {
|
|||
return;
|
||||
}
|
||||
std::stringstream msg;
|
||||
msg << "found non utvpi logic expression:\n" << mk_pp(n, m) << "\n";
|
||||
TRACE("utvpi", tout << msg.str(););
|
||||
warning_msg("%s", msg.str().c_str());
|
||||
msg << "found non utvpi logic expression:\n" << mk_pp(n, m) << '\n';
|
||||
auto str = msg.str();
|
||||
TRACE("utvpi", tout << str;);
|
||||
warning_msg("%s", str.c_str());
|
||||
ctx.push_trail(value_trail<context, bool>(m_non_utvpi_exprs));
|
||||
m_non_utvpi_exprs = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue