Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
21722a9f
Commit
21722a9f
authored
Dec 11, 2025
by
Thomas Schlichter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gNB: fix use after free of old UE->sc_info.csi_MeasConfig
parent
25cd85fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
+5
-7
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
View file @
21722a9f
...
...
@@ -977,11 +977,6 @@ void handle_nr_uci_pucch_2_3_4(module_id_t mod_id, frame_t frame, slot_t slot, c
return
;
}
NR_CSI_MeasConfig_t
*
csi_MeasConfig
=
UE
->
sc_info
.
csi_MeasConfig
;
if
(
csi_MeasConfig
==
NULL
)
{
NR_SCHED_UNLOCK
(
&
nrmac
->
sched_lock
);
return
;
}
NR_UE_sched_ctrl_t
*
sched_ctrl
=
&
UE
->
UE_sched_ctrl
;
// tpc (power control)
...
...
@@ -1017,8 +1012,11 @@ void handle_nr_uci_pucch_2_3_4(module_id_t mod_id, frame_t frame, slot_t slot, c
if
((
uci_234
->
pduBitmap
>>
2
)
&
0x01
)
{
LOG_D
(
NR_MAC
,
"CSI CRC %d
\n
"
,
uci_234
->
csi_part1
.
csi_part1_crc
);
if
(
uci_234
->
csi_part1
.
csi_part1_crc
!=
1
)
{
// API to parse the csi report and store it into sched_ctrl
extract_pucch_csi_report
(
csi_MeasConfig
,
uci_234
,
frame
,
slot
,
UE
,
nrmac
);
NR_CSI_MeasConfig_t
*
csi_MeasConfig
=
UE
->
sc_info
.
csi_MeasConfig
;
if
(
csi_MeasConfig
!=
NULL
)
{
// API to parse the csi report and store it into sched_ctrl
extract_pucch_csi_report
(
csi_MeasConfig
,
uci_234
,
frame
,
slot
,
UE
,
nrmac
);
}
}
free
(
uci_234
->
csi_part1
.
csi_part1_payload
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment