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

feat: check offset arithmetic overflow #15

Merged
merged 1 commit into from
Apr 1, 2019
Merged

Conversation

doitian
Copy link
Member

@doitian doitian commented Mar 30, 2019

No description provided.

use common::table_field_generated_verifier::get_root;

#[test]
fn test_soffset_overflow() {
Copy link
Member Author

Choose a reason for hiding this comment

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

Only add a test for overflow when following soffset.

It is hard to test other overflows since they require a huge buffer.

@doitian doitian requested a review from zhangsoledad March 30, 2019 10:34
@doitian doitian merged commit 7ce8331 into master Apr 1, 2019
@doitian doitian deleted the offset-overflow branch April 1, 2019 00:51
doitian added a commit to doitian/p2p that referenced this pull request Apr 1, 2019
Fix overflow panic when following the offset in malformed flatbuffers.

Refs nervosnetwork/cfb#15
doitian added a commit to doitian/p2p that referenced this pull request Apr 2, 2019
Fix overflow panic when following the offset in malformed flatbuffers.

Refs nervosnetwork/cfb#15
doitian added a commit to doitian/p2p that referenced this pull request Apr 8, 2019
Fix overflow panic when following the offset in malformed flatbuffers.

Refs nervosnetwork/cfb#15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants