Fix for issue 6100: incorrect shrinking logic in ResizeContext() (#6102)

This commit is contained in:
Laurentiu Cristofor
2020-09-04 15:52:13 -07:00
committed by GitHub
parent 71aca81ff9
commit fec58aa129

View File

@@ -195,7 +195,7 @@ class ResizeContext {
if (delta_ > 0)
buf_.insert(buf_.begin() + start, delta_, 0);
else
buf_.erase(buf_.begin() + start, buf_.begin() + start - delta_);
buf_.erase(buf_.begin() + start + delta_, buf_.begin() + start);
}
// Check if the range between first (lower address) and second straddles