Skip to content

[C#] Fix vtable offset truncation to short in FlatBufferVerify#9179

Open
Naruto wants to merge 1 commit into
google:masterfrom
Naruto:feature/fix-csharp-verify-vtable-int
Open

[C#] Fix vtable offset truncation to short in FlatBufferVerify#9179
Naruto wants to merge 1 commit into
google:masterfrom
Naruto:feature/fix-csharp-verify-vtable-int

Conversation

@Naruto

@Naruto Naruto commented Jul 18, 2026

Copy link
Copy Markdown

The absolute vtable offset was truncated to a 16-bit short via Convert.ToInt16, which throws OverflowException once it exceeds 32767 — so verifying any buffer larger than ~32KB fails. Widen it to int.

@Naruto
Naruto requested a review from dbaileychess as a code owner July 18, 2026 09:03
@github-actions github-actions Bot added the c# label Jul 18, 2026
@google-cla

google-cla Bot commented Jul 18, 2026

Copy link
Copy Markdown

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.

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