mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-03 22:04:12 +00:00
Fix for issue 6100: incorrect shrinking logic in ResizeContext() (#6102)
This commit is contained in:
committed by
GitHub
parent
71aca81ff9
commit
fec58aa129
@@ -195,7 +195,7 @@ class ResizeContext {
|
|||||||
if (delta_ > 0)
|
if (delta_ > 0)
|
||||||
buf_.insert(buf_.begin() + start, delta_, 0);
|
buf_.insert(buf_.begin() + start, delta_, 0);
|
||||||
else
|
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
|
// Check if the range between first (lower address) and second straddles
|
||||||
|
|||||||
Reference in New Issue
Block a user