mirror of
https://github.com/morluto/rea
synced 2026-10-25 22:08:11 -04:00
14877a069b
The DEHYDRATED_DATA COPY writer evaluated the output buffer before the reservation that could replace it, so a COPY that grew the hydration buffer wrote its payload into the superseded buffer. The overlay kept the advanced length and hashed uninitialized bytes while the report claimed complete recovery. Reservation now returns a view of the retained buffer, and every writer (COPY, zero fill, relative and absolute fixups) writes only through that view, so no caller can hold a stale buffer across growth. Fixes #5882 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>