Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

zk-token-sdk:add length checks #27389

Merged
merged 2 commits into from
Aug 25, 2022
Merged

zk-token-sdk:add length checks #27389

merged 2 commits into from
Aug 25, 2022

Conversation

samkim-crypto
Copy link
Contributor

Problem

Currently, the decoding of some of the cryptographic objects in the zk-token-sdk could panic when the supplied byte slice is of different size.

Summary of Changes

Add length checks on slices during decoding of cryptographic objects.

@samkim-crypto samkim-crypto merged commit 4c94493 into solana-labs:master Aug 25, 2022
mergify bot pushed a commit that referenced this pull request Aug 31, 2022
* zk-token-sdk: add length check for ristretto encodings

* zk-token-sdk: add type check for sigma proofs

(cherry picked from commit 4c94493)
mergify bot added a commit that referenced this pull request Aug 31, 2022
zk-token-sdk:add length checks (#27389)

* zk-token-sdk: add length check for ristretto encodings

* zk-token-sdk: add type check for sigma proofs

(cherry picked from commit 4c94493)

Co-authored-by: samkim-crypto <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant