google / google/flatbuffers

[C#] Incorrect offset type in verifier

Open
#8,937 7 comments 1 reaction 0 assignees Claimed by @LacoVadkerti View on GitHub
c# good-first-contribution pr-requested
Dominant language
C++
Stars
26.5k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

Offset type is converted to int16, but is computed as int position - int offset:

https://github.com/google/flatbuffers/blob/94d6b8086b46bdff7da308aa2d3aebf336d29f55/net/FlatBuffers/FlatBufferVerify.cs#L243

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.