Files
swift-asn1/Sources
Hashim KhanandCory Benfield d9a5b37470 Throw on truncated BER indefinite length encodings (#127)
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>
2026-08-13 14:30:28 +00:00
..