3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 20:05:51 +00:00

fix crash in qe_array ref counting due to wrong assignment operator of ptr_vector being called

thanks to Arie Gurfinkel for reporting this
This commit is contained in:
Nuno Lopes 2020-06-09 10:02:27 +01:00
parent 5f9973d8c4
commit ec1e733ef2
3 changed files with 2 additions and 17 deletions

View file

@ -327,10 +327,7 @@ public:
// prevent abuse:
ref_vector & operator=(ref_vector const & other) = delete;
ref_vector & operator=(ref_vector && other) {
super::operator=(std::move(other));
return *this;
}
ref_vector & operator=(ref_vector && other) = default;
bool operator==(ref_vector const& other) const {
if (other.size() != this->size()) return false;