You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 8, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 8, 2024. It is now read-only.
ASN1 decoding of grouped extension with all group components OPTIONAL and component with implicit value #243
Actually here, this is not an encoding but a decoding issue. The error happens when you try to decode the textual string corresponding to the value in ASN.1 notation, into the object structure.
There is no issue when you set the direct value into the object:
en_rrc.set_val(decoded)
I'll need to investigate what is the exact issue with decoding the ASN.1 value string.
And the group components are all OPTIONAL, plus the srs-SwitchingTimeRequested can only have one value forced to True. Hence, we may have additionally an issue here with canonical PER. As a first remark, I see the UPER re-encoding from pycrate differs from the provided buffer.
@luiscpgh : has this buffer been observed from a commercial handset implementation ?
changed the title [-]ASN1 encoding error when ... extension[/-][+]ASN1 decoding of grouped extension with all group components OPTIONAL and component with implicit value[/+]on Aug 28, 2023
Activity
p1-bmu commentedon Aug 28, 2023
Actually here, this is not an encoding but a decoding issue. The error happens when you try to decode the textual string corresponding to the value in ASN.1 notation, into the object structure.
There is no issue when you set the direct value into the object:
I'll need to investigate what is the exact issue with decoding the ASN.1 value string.
p1-bmu commentedon Aug 28, 2023
We have grouped extensions in the sub-object RF-ParametersMRDC:
And the group components are all OPTIONAL, plus the srs-SwitchingTimeRequested can only have one value forced to True. Hence, we may have additionally an issue here with canonical PER. As a first remark, I see the UPER re-encoding from pycrate differs from the provided buffer.
@luiscpgh : has this buffer been observed from a commercial handset implementation ?
[-]ASN1 encoding error when ... extension[/-][+]ASN1 decoding of grouped extension with all group components OPTIONAL and component with implicit value[/+]luiscpgh commentedon Aug 30, 2023
@p1-bmu : Thank you for looking into this. Yes, the message is sent by a OnePlus N200 phone.