Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

5G NAS UE policy protocol TS 24.501_UEPOL UEPolSectionMgmtSubresult uses length in octets instead of number of results #251

Open
maddenj-ie opened this issue Dec 12, 2023 · 1 comment

Comments

@maddenj-ie
Copy link

UEPolSectionMgmtSubresult has a length field which it sets to the length in octets of the results plus the length of the plmnId field rather than the number of results.

self[0].set_valauto(lambda: 3 + self[2].get_len())

From TS 24501 D.6.3

Number of results (octet d)
This field contains the binary encoding of number of results included in the UE policy section management subresult.

The 'Len' field should be a Uint8 and set to the number of elements in the sequence of UePolResult.

The field name of 'Len' may also be worth reviewing ;-)

I'm happy to assist with testing.

Thanks.

@mitshell
Copy link
Contributor

mitshell commented Mar 1, 2024

Thanks for uncovering this bug.
A new repository has been setup, including new fixes. This repo will keep being maintained : https://github.com/pycrate-org/pycrate. It includes fixes for this specific 5G NAS module. Moreover, it will ease collaborative support !

If you checkout the last 0.7.1 version, this bug should be solved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants