mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-11 01:22:15 +00:00
* Segment checkpoints: charge memo copies and string bytes; refuse impossible zip sizes; bounded inflate errors The pickle reader charged memo reads but not memo writes, and counted a string as one object whatever its length, so memoizing one long string many times kept unbounded copies; writes are charged too and strings count one node per 64 bytes. A zip entry stating more than deflate can expand its data to is refused before inflating, and inflate errors keep only the status, not the partial output. * address review: charge every owned field of Global, Storage and Tensor to the pickle clone budget