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

XER Octet String Decoding limited to 511 bytes #273

Open
tkillian7 opened this issue Sep 25, 2023 · 1 comment
Open

XER Octet String Decoding limited to 511 bytes #273

tkillian7 opened this issue Sep 25, 2023 · 1 comment

Comments

@tkillian7
Copy link

tkillian7 commented Sep 25, 2023

The following line of code limits the maximum size of an OCTET STRING to 511 bytes (1022 hex characters + null).

https://github.com/maxime-esa/asn1scc/blob/9d0db14ea8d6cbe10189e3f02803f2caf3455166/asn1crt/asn1crt_encoding_xer.c#L795

It would be nice if the hex characters did not need to be copied from one array to another, so the size of the octet string would not be limited in size.

@maxime-esa
Copy link
Collaborator

Hi @tkillian7. Thank you for the report.

Could you perhaps provide a fix for this issue (in a pull request) ?

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