esa / asn1scc

ASN1SCC: An open source ASN.1 compiler for embedded systems
https://www.thanassis.space/asn1.html
Other
272 stars 58 forks source link

XER Octet String Decoding limited to 511 bytes #273

Open tkillian7 opened 1 year ago

tkillian7 commented 1 year ago

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 commented 8 months ago

Hi @tkillian7. Thank you for the report.

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