mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-02 14:51:20 -05:00
7c71788994
reads_of kept one process-wide count per buffer address and never forgot it, so a
buffer freed by a test running alongside could pass its count to a new buffer the
allocator put at the same address. On Windows, linked_pages_read_the_file_once_and_a_blank_page_keeps_its_crop_box
saw 2 such stale reads in the full cargo test run of 7481fd3a while passing alone.
Keying by address and length keeps a freed buffer's count from carrying over.