Skip to content

Guard CompactVector deserialization against metadata overflow#69

Merged
somethingelseentirely merged 1 commit intomainfrom
codex/replace-multiplication-with-checked_mul
Sep 26, 2025
Merged

Guard CompactVector deserialization against metadata overflow#69
somethingelseentirely merged 1 commit intomainfrom
codex/replace-multiplication-with-checked_mul

Conversation

@somethingelseentirely
Copy link
Copy Markdown

Summary

  • guard CompactVector::from_bytes against len * width overflow and return an InvalidMetadata error
  • add a regression test that feeds overflowing metadata to ensure the guard triggers
  • record the overflow protection in the changelog

Testing

  • cargo test
  • ./scripts/preflight.sh

https://chatgpt.com/codex/tasks/task_e_68d6de6a9b808322b5b8d3108fbca6e7

@somethingelseentirely somethingelseentirely merged commit 8a351c9 into main Sep 26, 2025
1 check passed
@somethingelseentirely somethingelseentirely deleted the codex/replace-multiplication-with-checked_mul branch September 26, 2025 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant