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

Update flatbuffers to 22.9(resolved RUSTSEC-2021-0122) #794

Merged
merged 2 commits into from Dec 8, 2022

Conversation

zipper-meng
Copy link
Member

@zipper-meng zipper-meng commented Dec 8, 2022

Which issue does this PR close?

Closes #.

Rationale for this change

The old version of flatbuffers has some problems: Generated code can read and write out of bounds in safe code.

See this rustsec link or Github Issue.

What changes are included in this PR?

Note that flatbuffers now uses flatbuffers::Vector instead of slices in generated models.

Build script common/protos/build.rs will detect environment variable FLATC_PATH pointing to the executable flatc. You can use your own flatc to build protos.

export FLATC_PATH=/Tools/flatbuffers/flatc
make build

Are there any user-facing changes?

@roseboy-liu roseboy-liu merged commit e30871c into cnosdb:main Dec 8, 2022
@zipper-meng zipper-meng deleted the fix/update_flatbuffers branch August 21, 2023 03:17
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.

None yet

2 participants