Skip to content

Fix missing null-terminator check in flexbuffers::VerifyTerminator#9110

Open
mirze0x01 wants to merge 1 commit into
google:masterfrom
mirze0x01:patch-1
Open

Fix missing null-terminator check in flexbuffers::VerifyTerminator#9110
mirze0x01 wants to merge 1 commit into
google:masterfrom
mirze0x01:patch-1

Conversation

@mirze0x01
Copy link
Copy Markdown

The previous implementation of VerifyTerminator checked that the string fits within the buffer, but failed to verify that the terminating byte is actually '\0'. This could lead to out-of-bounds reads if the caller uses .c_str() on an untrusted FlexBuffer.

The previous implementation of VerifyTerminator checked that the string fits within the buffer, but failed to verify that the terminating byte is actually '\0'. This could lead to out-of-bounds reads if the caller uses .c_str() on an untrusted FlexBuffer.
@mirze0x01 mirze0x01 requested a review from dbaileychess as a code owner May 30, 2026 13:10
@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 30, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions Bot added the c++ label May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant