Skip to content

fix: bound authority update size diff scan - #173

Open
tracy-codes wants to merge 1 commit into
mainfrom
fix/update-authority-size-diff-bound
Open

fix: bound authority update size diff scan#173
tracy-codes wants to merge 1 commit into
mainfrom
fix/update-authority-size-diff-bound

Conversation

@tracy-codes

@tracy-codes tracy-codes commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • compute the updated role data length with checked signed arithmetic
  • avoid casting negative size diffs to usize in the boundary update scan

Validation

  • cargo fmt --all
  • cargo test -p swig from_instruction_bytes_rejects_short_actions_payload

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants