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
asn1 parameterized types with extension #4514
Comments
I had been unclear about how extension markers were encoded but after empirical testing I can see that they are not encoded in BER. So the simple solution for my purposes becomes removing the ellipsis making this less of a bug and more a feature request.
|
I have looked at this and I think it is a bug which we should fix. You are correct in that the extensionmarkers are not encoded, but they have significance when decoding data. If you decode a SEQUENCE which contains additional fields (after the extensionmarker) you decoder will accept it if there was an extensionmarker but will reject it if there is no extensionmarker (in your ASN.1 module which the decoder is generated from). The original crash is when generating records and I think it is a bug to try to generate a record for a parameterized type at all. |
A parameterized type (SEQUENCE or SET) with an extension marker made the compiler crash. The correction is to handle the extensionmarker in the same way here as for non parameterized types. GH-4514, OTP-17227
Fixed in OTP 23.3.2 |
Describe the bug
Compilation of an ASN.1 module fails if it contains a parameterized type with an extension marker.
To Reproduce
Expected behavior
I am expecting the parameterized types to be ignored and encode/decode functions for other (simple) types to be generated.
Affected versions
Reproduced with Erlang/OTP 23 (asn1-5.0.8).
Additional context
The ASN.1 modules I am working with which highlighted this issue are in 3GPP TS 29.078 CAMEL Application Part (CAP).
The text was updated successfully, but these errors were encountered: