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:
mustiikhalil
2023-11-18 22:14:55 +01:00
committed by GitHub
parent eb80ead90b
commit 526c92546f
8 changed files with 62 additions and 188 deletions

View File

@@ -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)