Skip to content

fix(lang-v2): cap flattened Accounts HEADER_SIZE at 255 - #4909

Open
akash-osec wants to merge 1 commit into
otter-sec:anchor-nextfrom
akash-osec:fix/v2-accounts-flattened-header-cap
Open

fix(lang-v2): cap flattened Accounts HEADER_SIZE at 255#4909
akash-osec wants to merge 1 commit into
otter-sec:anchor-nextfrom
akash-osec:fix/v2-accounts-flattened-header-cap

Conversation

@akash-osec

Copy link
Copy Markdown
Member

Fixes finding AI # 32

Nested Accounts could flatten past 255 slots while only the top-level field count was capped, leaving mute-mask/offset math out of domain. So the fix applies here and now compile-time assert that flattened HEADER_SIZE fits the 256-bit duplicate-tracking domain.

@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

@akash-osec is attempting to deploy a commit to the OtterSec Team on Vercel.

A member of the Team first needs to authorize it.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (anchor-next@2e7b73b). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@              Coverage Diff               @@
##             anchor-next    #4909   +/-   ##
==============================================
  Coverage               ?   65.03%           
==============================================
  Files                  ?      127           
  Lines                  ?    15877           
  Branches               ?        0           
==============================================
  Hits                   ?    10325           
  Misses                 ?     5552           
  Partials               ?        0           
Flag Coverage Δ
v2 65.03% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

3 participants