Commit 16429a5
fix(cache): prevent unreadable oversized fingerprints (#553)
## Motivation
wincode 0.5.2 enforced its default preallocation limit when
deserializing dynamic maps but not when serializing them. A large
inferred-input fingerprint could therefore be persisted successfully and
then fail on the next cache lookup with `Encoded sequence length
exceeded preallocation limit`, leaving a cache entry that its writer
could not read back.
## Changes
- bump wincode from 0.5.2 to 0.6.0, which applies the preallocation
check symmetrically
This preserves the 4 MiB preallocation policy while preventing oversized
fingerprints from poisoning later cache lookups. Formatting, workspace
checks, default tests, Clippy, and rustdoc pass locally.
Co-authored-by: GPT-5.6 Codex <codex@openai.com>1 parent 48240fb commit 16429a5
2 files changed
Lines changed: 8 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments