flatbuffers/swift/Sources/FlatBuffers
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
..
Documentation.docc
Vectors [Swift] Migrate to swift 6.0 and Implements support gRPC v2 (#8983) 2026-05-06 04:39:53 +02:00
_InternalByteBuffer.swift swift 6.0+ performance tweaks 3x-6x (#9067) 2026-06-18 15:23:53 +02:00
ByteBuffer.swift swift 6.0+ performance tweaks 3x-6x (#9067) 2026-06-18 15:23:53 +02:00
Constants.swift FlatBuffers Version 25.12.19 (#8871) 2025-12-19 15:06:07 -08:00
Enum.swift [Swift] Migrate to swift 6.0 and Implements support gRPC v2 (#8983) 2026-05-06 04:39:53 +02:00
FlatBufferBuilder.swift swift 6.0+ performance tweaks 3x-6x (#9067) 2026-06-18 15:23:53 +02:00
FlatBufferObject.swift swift 6.0+ performance tweaks 3x-6x (#9067) 2026-06-18 15:23:53 +02:00
FlatbuffersErrors.swift [Swift] Implements FlatbuffersVector which confirms to RandomAccessCollection (#8752) 2025-11-04 23:53:59 +00:00
FlatBuffersUtils.swift
Message.swift [Swift] Migrate to swift 6.0 and Implements support gRPC v2 (#8983) 2026-05-06 04:39:53 +02:00
Mutable.swift [Swift] Implements FlatbuffersVector which confirms to RandomAccessCollection (#8752) 2025-11-04 23:53:59 +00:00
NativeObject.swift [Swift] Implements FlatbuffersVector which confirms to RandomAccessCollection (#8752) 2025-11-04 23:53:59 +00:00
Offset.swift
Root.swift [Swift] Verify size-prefixed roots from reader position (#9196) 2026-08-11 21:49:44 +02:00
String+extension.swift [Swift] Inline arrays (#8755) 2025-11-15 00:33:16 +01:00
Struct.swift [Swift] Inline arrays (#8755) 2025-11-15 00:33:16 +01:00
Table.swift swift 6.0+ performance tweaks 3x-6x (#9067) 2026-06-18 15:23:53 +02:00
TableVerifier.swift [Swift] Migrate to swift 6.0 and Implements support gRPC v2 (#8983) 2026-05-06 04:39:53 +02:00
VeriferOptions.swift [Swift] Implements FlatbuffersVector which confirms to RandomAccessCollection (#8752) 2025-11-04 23:53:59 +00:00
Verifiable.swift [Swift] Fix verifier accepting truncated scalar vectors (OOB read/write, RCE) (#9081) 2026-05-08 10:16:10 +02:00
Verifier.swift [Swift] Verify size-prefixed roots from reader position (#9196) 2026-08-11 21:49:44 +02:00