verifier_program: Add shielded_transfer_second method#17
Merged
ananas-block merged 2 commits intomainfrom Feb 24, 2023
Merged
Conversation
Contributor
|
a couple of things:
|
This new method gets the message from the temporary PDA, sends it to noop program and closes the PDA.
eb43f0b to
e52be26
Compare
Contributor
Author
|
@ananas-block All points are addressed now (with one pending PR #22), PTAL |
Contributor
|
in light-system-programs: |
Contributor
|
to catch things like this pls run sh test.sh in the root dir |
Contributor
|
just updated it because I want to merge sth soon then you ld have to rebase again |
vadorovsky
pushed a commit
to vadorovsky/light-protocol
that referenced
this pull request
May 1, 2024
…r-transfer-second-noop verifier_program: Add `shielded_transfer_second` method
ananas-block
added a commit
that referenced
this pull request
Feb 6, 2026
Audit issue #17 (CRITICAL): Token::new_zero_copy only sets mint, owner, and state fields without zeroing amount, delegate, delegated_amount, is_native, or close_authority. An attacker could pre-set the amount field via IDL buffer. Zero all 165 base token bytes before initialization.
ananas-block
added a commit
that referenced
this pull request
Feb 9, 2026
…2248) * fix: zero base token bytes before init to prevent IDL buffer attack Audit issue #17 (CRITICAL): Token::new_zero_copy only sets mint, owner, and state fields without zeroing amount, delegate, delegated_amount, is_native, or close_authority. An attacker could pre-set the amount field via IDL buffer. Zero all 165 base token bytes before initialization. * fix: fail explicitly when token account data < 165 bytes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This new method gets the message from the temporary PDA, sends it to noop program and closes the PDA.