Skip to content

fix(lang): reject invalid migration exits and tighten max_len parsing#4622

Open
0x4ka5h wants to merge 2 commits into
otter-sec:masterfrom
Otter-0x4ka5h:fix-4060-3879
Open

fix(lang): reject invalid migration exits and tighten max_len parsing#4622
0x4ka5h wants to merge 2 commits into
otter-sec:masterfrom
Otter-0x4ka5h:fix-4060-3879

Conversation

@0x4ka5h

@0x4ka5h 0x4ka5h commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Audit V1.1 Suggestions:

  • Migration::exit() now errors with InvalidProgramId instead of returning Ok(()) when To::owner() doesn’t match program_id, and
  • parse_len_arg() now only accepts integer literals plus identifiers/paths, so floats no longer slip through.

@vercel

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the OtterSec Team on Vercel.

A member of the Team first needs to authorize it.

@jamie-osec

Copy link
Copy Markdown
Collaborator

Can we add a changelog for the InvalidProgramId change? (not needed for the parsing change)

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