Skip to content

[CPP] Unable to pass SIzeVerifier to root verifier #8579

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

Open
thejtshow opened this issue Apr 14, 2025 · 1 comment
Open

[CPP] Unable to pass SIzeVerifier to root verifier #8579

thejtshow opened this issue Apr 14, 2025 · 1 comment

Comments

@thejtshow
Copy link

It looks like FLATBUFFERS_TRACK_VERIFIER_BUFFER_SIZE was deprecated, the ability to call either of the following was broken:

flatbuffers::SizeVerifier verifier{ data, len };

verifier.VerifyBuffer<my_root_type>(); // compiler error

auto my_buffer = Getmy_root_type(data);

my_buffer->Verify(verifier); // compiler error
@thejtshow
Copy link
Author

these both fail with some flavor of

verifier.h:216:64: error: cannot convert 'flatbuffers::VerifierTemplate<true>' to 'flatbuffers::Verifier&' {aka 'flatbuffers::VerifierTemplate<false>&'}

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

No branches or pull requests

1 participant