mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
After reassigning self on line 160, baseAddress on line 161 resolves to the new self's baseAddress (oldStart + cut) instead of the original start. This causes the returned buffer to point past the actual elements into uninitialized memory. Use the captured oldStart instead.