firebase-cpp-sdk icon indicating copy to clipboard operation
firebase-cpp-sdk copied to clipboard

Fix: Check flatbuffer integrity before parsing

Open AustinBenoit opened this issue 5 months ago • 4 comments

Description

Provide details of the change, and generalize the change in the PR title above. Fix: Check flatbuffer integrity before parsing Updated flatbuffer to latest version to get verify buffer Use strol for key parsing to ensure exceptions do not result in a crash.


Testing

Describe how you've tested these changes. Link any manually triggered Integration tests or CPP binary SDK Packaging Github Action workflows, if applicable.

Integration test in github


Type of Change

Place an x the applicable box:

  • [X] Bug fix. Add the issue # below if applicable.
  • [ ] New feature. A non-breaking change which adds functionality.
  • [ ] Other, such as a build process or documentation change.

Notes

  • Bug fixes and feature changes require an update to the Release Notes section of release_build_files/readme.md.
  • Read the contribution guidelines CONTRIBUTING.md.
  • Changes to the public API require an internal API review. If you'd like to help us make Firebase APIs better, please propose your change in a feature request so that we can discuss it together.

AustinBenoit avatar Jun 03 '26 17:06 AustinBenoit

Integration test with FLAKINESS (succeeded after retry)

Requested by @AustinBenoit on commit 272108f241250e73c4528402ede80c249d723118 Last updated: Fri Jul 3 15:14 PDT 2026 View integration test log & download artifacts

Failures Configs
firestore [TEST] [FLAKINESS] [Android] [1/3 os: macos] [1/2 android_device: android_target]
(1 failed tests)  NumericTransformsTest.MultipleDoubleIncrements
[TEST] [FLAKINESS] [Android] [1/3 os: windows] [1/2 android_device: emulator_ftl_target]
(1 failed tests)  CRASH/TIMEOUT
functions [TEST] [FLAKINESS] [Android] [1/3 os: ubuntu] [1/2 android_device: emulator_ftl_target]
(1 failed tests)  CRASH/TIMEOUT
messaging [TEST] [FLAKINESS] [Android] [1/3 os: macos] [All 2 android_device]
(1 failed tests)  CRASH/TIMEOUT

Add flaky tests to go/fpl-cpp-flake-tracker

github-actions[bot] avatar Jun 17 '26 18:06 github-actions[bot]

/gemini review

AustinBenoit avatar Jun 23 '26 20:06 AustinBenoit

/gemini review

AustinBenoit avatar Jun 24 '26 00:06 AustinBenoit

Wiz Scan Summary

⚠️ Many findings detected
Many findings were detected, but only a subset of the findings are displayed inline due to API constraints. To view all findings inline, please click here.
Scanner Findings
Vulnerability Finding Vulnerabilities 26 High 36 Medium 3 Low
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings -
Software Management Finding Software Management Findings -
Total 26 High 36 Medium 3 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

wiz-9635d3485b[bot] avatar Jun 24 '26 14:06 wiz-9635d3485b[bot]

@AustinBenoit should this fix crashes we’re seeing in flatbuffers::GetMutableRoot<T> (see #1433)?

triplef avatar Jul 15 '26 06:07 triplef