flatbuffers/swift
carrerasdarren-cell 5761d6e67a
[Swift] Verify size-prefixed roots from reader position (#9196)
* [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>
2026-08-11 21:49:44 +02:00
..
Sources [Swift] Verify size-prefixed roots from reader position (#9196) 2026-08-11 21:49:44 +02:00
BUILD.bazel [Swift] Fixes bazel.build file allowing it to find Vectors folder in 8.5.0 (#8875) 2025-12-21 21:22:49 +00:00
LICENSE
README.md docs: clean up whitespace and fix typo in tutorial.md (#8695) 2025-09-25 09:02:22 -07:00

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