Trailing bytes allowed when deserializing a ProgramInstruction
#33786
Labels
community
Community contribution
ProgramInstruction
#33786
I would like to better understand why trailing bytes are allowed when extending a table lookup with new addresses.
Problem
I found the issue with this transaction. Toggling the raw data shows all the data that is used in the below code snippet.
Changing the first
1
to a2
would enable to extend a table account with 2 new addresses.I see that it comes down to this line of code: https://github.com/solana-labs/solana/blob/master/sdk/program/src/program_utils.rs#L16. I do not understand the comment mentioning:
// to retain the behavior of bincode::deserialize with the new
options()method
Proposed Solution
No proposed solution, more a question of understanding why.
The text was updated successfully, but these errors were encountered: