Skip to content

fix(lang-v2): honor bytemuckunsafe in declare_program! imports - #4924

Open
akash-osec wants to merge 1 commit into
otter-sec:anchor-nextfrom
akash-osec:fix/v2-declare-program-bytemuckunsafe
Open

fix(lang-v2): honor bytemuckunsafe in declare_program! imports#4924
akash-osec wants to merge 1 commit into
otter-sec:anchor-nextfrom
akash-osec:fix/v2-declare-program-bytemuckunsafe

Conversation

@akash-osec

Copy link
Copy Markdown
Member

Fixing finding AI # 28
declare_program! collapsed bytemuckunsafe into safe bytemuck, so imported unsafe zero-copy types were rejected unless they were already Pod and padding-free. Now this PR keep safe bytemuck checks for bytemuck, and for bytemuckunsafe emit unchecked Pod impls with v1’s packed default when repr is omitted.

@vercel

vercel Bot commented Aug 13, 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

❌ Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (anchor-next@e4878b6). Learn more about missing BASE report.

Files with missing lines Patch % Lines
lang-v2/derive/src/lib.rs 93.75% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@              Coverage Diff               @@
##             anchor-next    #4924   +/-   ##
==============================================
  Coverage               ?   64.65%           
==============================================
  Files                  ?      127           
  Lines                  ?    16618           
  Branches               ?        0           
==============================================
  Hits                   ?    10744           
  Misses                 ?     5874           
  Partials               ?        0           
Flag Coverage Δ
v2 64.65% <93.75%> (?)

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.

2 participants