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

Align C and Rust handling of AccountInfos #8906

Merged

Conversation

jackcmay
Copy link
Contributor

Problem

Unlike Rust, a C program cannot ask for less than the number of AccountInfos but can ask for more and still receive success

Summary of Changes

Flip the C AccountInfo deserialization behavior so programs can ask for less than what is available (they may not need/want it) but if they ask for more than deserialization fails.

Fixes #

@jackcmay jackcmay merged commit 668dfc4 into solana-labs:master Mar 17, 2020
@jackcmay jackcmay deleted the align-rust-c-account-deserialization branch March 17, 2020 19:34
This was referenced Sep 29, 2023
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