mouse07410 / asn1c

The ASN.1 Compiler
http://lionet.info/asn1c/
BSD 2-Clause "Simplified" License
101 stars 73 forks source link

PER: fix encoding and decoding of OPENTYPE with size constraints #154

Closed CedricRouxEurecom closed 11 months ago

CedricRouxEurecom commented 11 months ago

Constraints have to be used. If not the encoding or decoding may be wrong.

For example RRC-Version of 3GPP 38.473 contains an extension with a fixed size constraint (so the size is not encoded).

Note: this pull request does not solve all cases. For example the constraint:

SIZE(3..1000000)

is not managed properly. (Solved in another pull request almost ready.)