mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +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)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user