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
Michael Black
OpenXG-RAN
Commits
5de85671
Commit
5de85671
authored
May 02, 2022
by
Roberto Louro Magueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix heap buffer overflow
parent
6b6528cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+6
-10
No files found.
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
5de85671
...
...
@@ -807,21 +807,17 @@ void nr_ulsch_channel_compensation(int **rxdataF_ext,
int
avg_rho_re
[
frame_parms
->
nb_antennas_rx
][
nrOfLayers
*
nrOfLayers
];
int
avg_rho_im
[
frame_parms
->
nb_antennas_rx
][
nrOfLayers
*
nrOfLayers
];
for
(
aarx
=
0
;
aarx
<
frame_parms
->
nb_antennas_rx
;
aarx
++
)
{
for
(
aatx
=
0
;
aatx
<
nrOfLayers
;
aatx
++
)
{
ul_ch128
=
(
__m128i
*
)
&
ul_ch_estimates_ext
[
aatx
*
frame_parms
->
nb_antennas_rx
+
aarx
][
symbol
*
(
off
+
(
nb_rb
*
12
))];
for
(
aarx
=
0
;
aarx
<
frame_parms
->
nb_antennas_rx
;
aarx
++
)
{
for
(
aatx
=
0
;
aatx
<
nrOfLayers
;
aatx
++
)
{
for
(
int
atx
=
0
;
atx
<
nrOfLayers
;
atx
++
)
{
for
(
int
atx
=
0
;
atx
<
nrOfLayers
;
atx
++
)
{
avg_rho_re
[
aarx
][
aatx
*
nrOfLayers
+
atx
]
=
0
;
avg_rho_im
[
aarx
][
aatx
*
nrOfLayers
+
atx
]
=
0
;
rho128
=
(
__m128i
*
)
&
rho
[
aarx
][
aatx
*
nrOfLayers
+
atx
][
symbol
*
(
off
+
(
nb_rb
*
12
))];
ul_ch128
=
(
__m128i
*
)
&
ul_ch_estimates_ext
[
aatx
*
frame_parms
->
nb_antennas_rx
+
aarx
][
symbol
*
(
off
+
(
nb_rb
*
12
))];
ul_ch128_2
=
(
__m128i
*
)
&
ul_ch_estimates_ext
[
atx
*
frame_parms
->
nb_antennas_rx
+
aarx
][
symbol
*
(
off
+
(
nb_rb
*
12
))];
for
(
rb
=
0
;
rb
<
nb_rb_0
;
rb
++
)
{
for
(
rb
=
0
;
rb
<
nb_rb_0
;
rb
++
)
{
// multiply by conjugated channel
mmtmpD0
=
_mm_madd_epi16
(
ul_ch128
[
0
],
ul_ch128_2
[
0
]);
// print_ints("re",&mmtmpD0);
...
...
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