Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deserialize using get_data_size(), which refers to blob.data()'s length, instead of using msg.meta.size, which refers to the entire blob's length #755

Merged
merged 3 commits into from
Jul 25, 2018

Conversation

rob-solana
Copy link
Contributor

fixes #752

  instead of using msg.meta.size, which refers to the entire blob's length

fixes solana-labs#752
@rob-solana
Copy link
Contributor Author

this implies that deserialize() ignores extra bytes passed to it, as we've been passing 64 extra bytes to this call to deserialize() for a while with few ill effects until we got close to blob_size for a replication...

@rob-solana
Copy link
Contributor Author

this bit of code dates back to my very first PR #397, the bug in question was copied from existing code to my code ;)

@rob-solana
Copy link
Contributor Author

the modification to the test catches the error mvines was seeing in validators

@rob-solana rob-solana added the work in progress This isn't quite right yet label Jul 25, 2018
@rob-solana rob-solana force-pushed the fix-752 branch 3 times, most recently from d5c10c4 to 868baad Compare July 25, 2018 11:14
@rob-solana rob-solana removed the work in progress This isn't quite right yet label Jul 25, 2018
Copy link
Member

@mvines mvines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please. Let's land this ASAP (once the erasure build issue is resolved!) and I'll see how it performs on the testnet

@rob-solana rob-solana merged commit 9c7913a into solana-labs:master Jul 25, 2018
Copy link
Member

@sakridge sakridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@rob-solana rob-solana deleted the fix-752 branch July 25, 2018 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants