mirror of
https://github.com/apple/swift-asn1
synced 2026-11-24 04:17:50 +00:00
Fixes #125 A truncated BER indefinite length constructed value was parsed as success. The last child was popped and treated as the end of contents marker, so that child disappeared. The parser now throws truncatedASN1Field when input ends without those octets, matching X.690 section 8.1.3.6.1. ## Test plan Added testRejectsTruncatedBERIndefiniteLengthWithoutEndMarker. Built the SwiftASN1 product. Full XCTest suite needs Xcode. Co-authored-by: Cory Benfield <lukasa@apple.com>