Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RobLinux opened this issue Dec 27, 2022 · 2 comments
Open

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

RobLinux opened this issue Dec 27, 2022 · 2 comments

Comments

@RobLinux
Copy link

RobLinux commented Dec 27, 2022

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)

@RobLinux
Copy link
Author

RobLinux commented Dec 27, 2022

#410 created a PR for it

@ArnoldCell
Copy link

Had the same issue lately

@RobLinux RobLinux changed the title ASN.1 Time validation exception because not too much precision PR: ASN.1 Time validation exception because not too much precision Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants