Fix invalid memory access in CScript::operator+=

This commit is contained in:
Anthony Towns
2017-09-11 13:40:31 +10:00
parent ee50c9e487
commit d601f16621
2 changed files with 18 additions and 0 deletions

View File

@@ -420,6 +420,7 @@ public:
CScript& operator+=(const CScript& b)
{
reserve(size() + b.size());
insert(end(), b.begin(), b.end());
return *this;
}