mirror of
https://github.com/google/flatbuffers.git
synced 2026-11-08 13:19:10 +00:00
* [Swift] Verify size-prefixed roots from reader position Validate the size prefix before advancing ByteBuffer.reader, then use the active reader position consistently for root, file identifier, and returned-object verification. Cover malformed decoy roots, oversized prefixes, short identifiers, and valid prefixed identifiers. * Use wrapping arithmetic in Swift verifier --------- Co-authored-by: Darren Carreras <283775510+carrerasdarren-cell@users.noreply.github.com>
FlatBuffers swift can be found in both SPM
.package(url: "https://github.com/google/flatbuffers.git", from: "X.Y.Z"),
and Cocoapods
pod 'FlatBuffers'
Contribute
1- Always run swift test --generate-linuxmain whenever new test functions are added or removed