Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Jojeker
Copy link
Contributor

@Jojeker Jojeker commented Jan 11, 2025

Otherwise, the UE crashes with a NULL Derference. This patch should introduce the check before accessing the barring bits.

From the specification 3GPP TS 38.331 the uac-BarringInfo is defined as optional:

uac-BarringInfo SEQUENCE {
      uac-BarringForCommon [UAC-BarringPerCatList] OPTIONAL, -- Need S
      uac-BarringPerPLMN-List [UAC-BarringPerPLMN-List] OPTIONAL, -- Need S
      uac-BarringInfoSetList [UAC-BarringInfoSetList],
      uac-AccessCategory1-SelectionAssistanceInfo CHOICE {
         plmnCommon [UAC-AccessCategory1-SelectionAssistanceInfo],
         individualPLMNList SEQUENCE (SIZE (2..[maxPLMN]) OF [UAC-AccessCategory1-SelectionAssistanceInfo]
         } OPTIONAL-- Need S
      } OPTIONAL, -- Need R

Cheers,
Eduard

Otherwise, the UE crashes with a NULL Derference. This patch should
introduce the check before accessing the barring bits.

Signed-off-by: Eduard Vlad <[email protected]>
@aligungr aligungr merged commit 7bf0cc9 into aligungr:master Feb 2, 2025
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

Successfully merging this pull request may close these issues.

2 participants