-
Notifications
You must be signed in to change notification settings - Fork 137
Fix: Check flatbuffer integrity before parsing #1864
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
AustinBenoit
wants to merge
18
commits into
main
Choose a base branch
from
FixVulns
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
7193a18
Fix: Check flatbuffer integrity before parsing
AustinBenoit c50d721
Handle new FBT_MAX_TYPE in flatbuffers
AustinBenoit dde589e
Fix the GenerateText response
AustinBenoit 1dde56a
Patch flatbuffers to resolve ERROR macro conflict on Windows
AustinBenoit 0202676
Add release notes
AustinBenoit 51f3395
Restore 0001-remove-unused-var.patch for Android flatbuffers v1.12.0 …
AustinBenoit 8938c3b
Use cp -RL on Windows to avoid symbolic link creation failure
AustinBenoit 9850a4c
Address code review feedback on remote_config desktop implementation
AustinBenoit aa64115
Revert minor whitespace change in 0001-remove-unused-var.patch
AustinBenoit 700c4f6
Add default case to FlexbufferToVariant switch to handle unknown/corr…
AustinBenoit b9128e1
Fix incorrect GenerateText return value comparison to nullptr
AustinBenoit 3b6dbc8
Add default case to FlexbufferToVariant switches in app and database …
AustinBenoit ca07b97
Avoid leading slash in app_data_prefix when package_name is empty/null
AustinBenoit cf6501e
Add defensive null check for configs in RemoteConfigFileManager::Load
AustinBenoit 9aa9d5c
Fix logic inversion in RequestJson serialization assertion
AustinBenoit 8e06e5c
Pin flatbuffers to official v25.12.19 release commit 7e163021
AustinBenoit 1eb093d
Unify C++ and Java FlatBuffers versions to v25.2.10
AustinBenoit dad5112
Update FlatBuffers patch for v25.2.10 formatting compatibility on Win…
AustinBenoit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
scripts/git/patches/flatbuffers/0001-fix-error-macro.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| From: Antigravity <antigravity@google.com> | ||
| Subject: Patch flatbuffers to resolve ERROR macro conflict on Windows | ||
|
|
||
| Workaround for conflict between ProtoIdGapAction::ERROR in idl.h and the | ||
| Windows global ERROR macro defined in wingdi.h/windows.h. | ||
|
|
||
| See Flatbuffers Issue: https://github.com/google/flatbuffers/issues/8483 | ||
|
|
||
| diff --git a/include/flatbuffers/idl.h b/include/flatbuffers/idl.h | ||
| index 95fda8c2..6da1c6e3 100644 | ||
| --- a/include/flatbuffers/idl.h | ||
| +++ b/include/flatbuffers/idl.h | ||
| @@ -17,6 +17,12 @@ | ||
| #ifndef FLATBUFFERS_IDL_H_ | ||
| #define FLATBUFFERS_IDL_H_ | ||
|
|
||
| +#ifdef ERROR | ||
| +#pragma push_macro("ERROR") | ||
| +#undef ERROR | ||
| +#define FLATBUFFERS_POP_ERROR_MACRO | ||
| +#endif | ||
| + | ||
| #include <algorithm> | ||
| #include <functional> | ||
| #include <map> | ||
| @@ -1300,4 +1306,9 @@ extern bool GenerateTSGRPC(const Parser &parser, const std::string &path, | ||
| const std::string &file_name); | ||
| } // namespace flatbuffers | ||
|
|
||
| +#ifdef FLATBUFFERS_POP_ERROR_MACRO | ||
| +#pragma pop_macro("ERROR") | ||
| +#undef FLATBUFFERS_POP_ERROR_MACRO | ||
| +#endif | ||
| + | ||
| #endif // FLATBUFFERS_IDL_H_ |
32 changes: 0 additions & 32 deletions
32
scripts/git/patches/flatbuffers/0001-remove-unused-var.patch
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.