Skip to content

PR: ASN.1 Time validation exception because not too much precisionΒ #409

@RobLinux

Description

@RobLinux

Apple has ASN.1 times encoded in this format 20171017112741.65904593Z. If we read it with BC it will throw an exception, because the highest handled precision handled Asn1GeneralizedTime.cs is

case 23: return ParseUtc(s, @"yyyyMMddHHmmss.fffffff\Z");

Solution would be to increase to 24 + 25 with two extra floats.

It's currently a show stopper for my company. Any advice on how to counter it ? (we cannot modify the source data obviously)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions