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

fix: don't throw exception on invalid BitString and Utf8String #70

Open
wants to merge 4 commits into
base: trunk
Choose a base branch
from

Conversation

dishmaker
Copy link

@dishmaker dishmaker commented Sep 4, 2023

So there is an ISO/RFC example with 2 invalid ASN.1 values: BIT STRING and UTF8String
All the other tags are valid.

With throw new Error(...) the ASN.1 JS Decoder wouldn't show anything.
And yes, they really put an invalid example in kinda-new ISO/IEC from 2016.

Thanks for the awesome project.

Here's how it looks like parsed now:

obraz

@lapo-luchini
Copy link
Owner

Hi! I'm very sorry, I didn't properly read your PR until today. 😢
Things have changed re: this behavior in 8f048ac.
Can you provide the "broken" RFC example so that I can test it myself, too?

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

Successfully merging this pull request may close these issues.

None yet

2 participants