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

Don't validate array flatbuffer messages twice #418

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

robert3005
Copy link
Member

No description provided.

.array()
.ok_or_else(|| vortex_err!("Chunk missing Array"))
})
unsafe { root_unchecked::<fb::Message>(flatbuffer) }
Copy link
Member Author

Choose a reason for hiding this comment

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

In this class load_next_message already runs flatbuffer validation. At this point we know we have a valid fb::Message

@robert3005 robert3005 changed the title Don't validate array flatbuffer message twice Don't validate array flatbuffer messages twice Jun 26, 2024
@robert3005 robert3005 merged commit 3d915fb into develop Jun 26, 2024
2 checks passed
@robert3005 robert3005 deleted the rk/redundantvalidation branch June 26, 2024 16:59
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