flatbuffers/swift/Sources
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
..
Common swift 6.0+ performance tweaks 3x-6x (#9067) 2026-06-18 15:23:53 +02:00
FlatBuffers [Swift] Verify size-prefixed roots from reader position (#9196) 2026-08-11 21:49:44 +02:00
FlexBuffers swift 6.0+ performance tweaks 3x-6x (#9067) 2026-06-18 15:23:53 +02:00