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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
spbro
OpenXG-RAN
Commits
aff3395f
Commit
aff3395f
authored
Dec 23, 2022
by
Roberto Louro Magueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix buffer overflow in nr_csi_im_power_estimation()
parent
5d58645a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+4
-1
No files found.
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
View file @
aff3395f
...
...
@@ -773,9 +773,12 @@ int nr_csi_im_power_estimation(const PHY_VARS_NR_UE *ue,
for
(
int
sc_idx
=
0
;
sc_idx
<
4
;
sc_idx
++
)
{
uint16_t
sc
=
sc0_offset
+
csiim_config_pdu
->
k_csiim
[
sc_idx
];
if
(
sc
>=
frame_parms
->
ofdm_symbol_size
)
{
sc
-=
frame_parms
->
ofdm_symbol_size
;
}
#ifdef NR_CSIIM_DEBUG
LOG_I
(
NR_PHY
,
"(ant_rx %i, sc %i) real %i, imag %i
\n
"
,
ant_rx
,
rb
,
rx_signal
[
sc
].
r
,
rx_signal
[
sc
].
i
);
LOG_I
(
NR_PHY
,
"(ant_rx %i, sc %i) real %i, imag %i
\n
"
,
ant_rx
,
sc
,
rx_signal
[
sc
].
r
,
rx_signal
[
sc
].
i
);
#endif
sum_re
+=
rx_signal
[
sc
].
r
;
...
...
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