mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 11:22:18 +00:00
Fixes forward offset verifiable objects within arrays (#8135)
Fixes failing tests & removes XCTestsManifests Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
@@ -129,7 +129,7 @@ public enum Vector<U, S>: Verifiable where U: Verifiable, S: Verifiable {
|
||||
let range = try verifyRange(&verifier, at: position, of: UOffset.self)
|
||||
for index in stride(
|
||||
from: range.start,
|
||||
to: Int(clamping: range.start &+ range.count),
|
||||
to: Int(clamping: range.start &+ (range.count &* MemoryLayout<Int32>.size)),
|
||||
by: MemoryLayout<UOffset>.size)
|
||||
{
|
||||
try U.verify(&verifier, at: index, of: U.self)
|
||||
|
||||
Reference in New Issue
Block a user