You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
patina_internal_collections: Fix bounds checking in Storage::resize()
## Description
Added bounds checking when updating node pointers during resize.
Prevents out-of-bounds access to buffer[idx] when indices from
old storage exceed new buffer size.
Fixes potential panic when resizing to smaller buffers while
preserving node relationships (left/right/parent pointers).
- [x] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [x] Includes tests?
- [ ] Includes documentation?
## How This Was Tested
- Unit tests (`cargo test --package patina_internal_collections`)
- Added test_resize_preserves_valid_pointers to verify fix
## Integration Instructions
- N/A
0 commit comments