Skip to content

Commit 16429a5

Browse files
wan9chicodex
andauthored
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

File tree

Cargo.lock

Lines changed: 7 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ assert2 = "0.4.0"
4545
assertables = "10.0.0"
4646
async-trait = "0.1.89"
4747
base64 = "0.22.1"
48-
wincode = "0.5.2"
48+
wincode = "0.6.0"
4949
bindgen = "0.72.1"
5050
bitflags = "2.10.0"
5151
brush-parser = "0.4.0"

0 commit comments

Comments
 (0)