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

Extensible integer with a max value in the extension UPER decoding #484

Open
Jokunsby opened this issue Sep 13, 2023 · 0 comments
Open

Extensible integer with a max value in the extension UPER decoding #484

Jokunsby opened this issue Sep 13, 2023 · 0 comments

Comments

@Jokunsby
Copy link

When using the new IVIM ASN.1 from the ETSI git and ISO repository, asn1c compile DeltaPositions ::= SEQUENCE (SIZE (1..32,...,100)) OF DeltaPosition to /* (SIZE(1..100,...)) */.

And so, if I have an encoded IVIM in UPER with a DeltaPositions of size 36 for example, it detects that there is 36 DeltaPosition, but if the size between 1 and 32, the size is incorrect.

Two examples:

  1. 0206c0a834f1b981fffcc8e090a02739c5242809c0e4090a0306185240142e7fca1c75b9313ffffff8476ee87c23000000491fb7d7f98dfb7d7f98dfb7d7f98dfcfc81429fdd38176dfdd38176e002681a7a002681a7a002681a7a002681a7a009c81a42009c81a4200ea819fa00ea819fa022f8175e01c97e78a01c97e78a01c97e78a01b67e75e01f47e7f6026b7e95e04968043e0470807ce0470807ce0470807ce02997ea0602997ea0602997ea06025f7e93601d77e7aa046b8082e046b8082e046b8082e046b8082e049b80382049b80380608000042008f80d3a022e7fd82022e7fd82021f803c2021f803c2021d803ea021c803fe021c803fe021d803e6021d803e6021d803e6021d803e2021d803e1ffa180c81ff5c80c25ff3f80bf1ff3f80bf040b0040000420560400a31a8604392539193d4105490d21151d1d24ea18110434954544144454c4c41202020202020860400c1c100001143021c929c8c9ea082a486908a8e8e92750c08821a4aa2a20a222a6262090101010101043020000020210
  2. 0206c0a834f1b981fffcc8bc90a02747cf242809c0e4090a0306f8f240142e70b39c75b1443ffffff8476ee87c230000002afc1ebf870fc1ebf870fc1ebf870fc1ebf870fc1ebf870fc1ebf870fc1ebf870fc1ebf870fc1ebf870fc1ebf870fc1ebf870fc1ebf870fc1ebf870fc1ebf870fc1ebf870fc1ebf870fbe9bfe1cfdb7c136afe9e41600fedb41670ff1b416cefffd4175e30400000ec37eb897502b44057f02b44057f02b44057f02b44057f02b44057f02b44057f02b44057e20580200002102b0200518d43021c929c8c9ea082a486908a8e8e92750c08820a922a72090101010101010101010104302208692a8a882888a98988240404040404060e0800008a1810e494e464f5041524348454747493a8604410549153904808080808080808080808218110434954544144454c4c4120202020202000010108

The first one has two GlcPart with deltaPositions of size 36 and 17.
The second one has two GlcPart with deltaPositions of size 22 and 8.
Note that these two examples are well decoded by Wireshark v4.0.8 (with a warning for the first one).

My version of asn1c is the 0.9.29.

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

1 participant