mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 08:58:44 +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
|
@ -62,7 +62,7 @@ symbol smt_renaming::fix_symbol(symbol s, int k) {
|
|||
|
||||
if (s.is_numerical()) {
|
||||
buffer << s << k;
|
||||
return symbol(buffer.str().c_str());
|
||||
return symbol(buffer.str());
|
||||
}
|
||||
|
||||
if (!s.bare_str()) {
|
||||
|
@ -78,7 +78,7 @@ symbol smt_renaming::fix_symbol(symbol s, int k) {
|
|||
buffer << "!" << k;
|
||||
}
|
||||
|
||||
return symbol(buffer.str().c_str());
|
||||
return symbol(buffer.str());
|
||||
}
|
||||
|
||||
bool smt_renaming::is_legal(char c) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue