Skip to content

fix:CHF nchf-convergedcharging POST /chargingdata panics#67

Merged
Alonza0314 merged 5 commits into
free5gc:mainfrom
solar224:fix/chf-convergedcharging-plmnid-length-guard
Apr 7, 2026
Merged

fix:CHF nchf-convergedcharging POST /chargingdata panics#67
Alonza0314 merged 5 commits into
free5gc:mainfrom
solar224:fix/chf-convergedcharging-plmnid-length-guard

Conversation

@solar224

@solar224 solar224 commented Mar 26, 2026

Copy link
Copy Markdown
Contributor
  • Fix CHF POST /nchf-convergedcharging/v3/chargingdata panic caused by short or malformed nFPLMNID.mcc/mnc values.
  • Propagate PLMN validation failures through OpenCDR as controlled client errors (HTTP 400 path), preventing request-triggered panic/DoS.
  • Add tests for valid PLMN inputs and malformed short/non-digit MCC/MNC cases.

util: free5gc/util#42

Fixes: free5gc/free5gc#928

@solar224
solar224 force-pushed the fix/chf-convergedcharging-plmnid-length-guard branch from 09129cc to b3b697e Compare March 26, 2026 07:56
@roundspring2003

Copy link
Copy Markdown
Contributor

@Alonza0314 Test All pass

@Alonza0314
Alonza0314 merged commit 2c3e85d into free5gc:main Apr 7, 2026
3 checks passed
@solar224
solar224 deleted the fix/chf-convergedcharging-plmnid-length-guard branch April 7, 2026 08:10
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.

[Bugs] CHF nchf-convergedcharging POST /chargingdata panics on short nFPLMNID values

3 participants