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
wangjie
OpenXG-RAN
Commits
813a21e5
Commit
813a21e5
authored
May 09, 2018
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix out-of-bound access in dci_tools.c (coherency check)
parent
bddf6304
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
26 deletions
+10
-26
openair1/PHY/LTE_TRANSPORT/dci_tools.c
openair1/PHY/LTE_TRANSPORT/dci_tools.c
+9
-26
openair1/SIMULATION/LTE_PHY/dlsim.c
openair1/SIMULATION/LTE_PHY/dlsim.c
+1
-0
No files found.
openair1/PHY/LTE_TRANSPORT/dci_tools.c
View file @
813a21e5
...
...
@@ -4726,44 +4726,27 @@ int check_dci_format1_1a_coherency(DCI_format_t dci_format,
break
;
}
}
else
if
(
dci_format
==
format1
)
{
NPRB
=
conv_nprb
(
rah
,
rballoc
,
N_RB_DL
);
switch
(
N_RB_DL
)
{
case
6
:
NPRB
=
RIV2nb_rb_LUT6
[
rballoc
];
//NPRB;
if
(
rah
)
RIV_max
=
RIV_max6
;
else
RIV_max
=
0x3F
;
RIV_max
=
0x3f
;
break
;
case
25
:
NPRB
=
RIV2nb_rb_LUT25
[
rballoc
];
//NPRB;
if
(
rah
)
RIV_max
=
RIV_max25
;
else
RIV_max
=
0x1FFF
;
RIV_max
=
0x1fff
;
break
;
case
50
:
NPRB
=
RIV2nb_rb_LUT50
[
rballoc
];
//NPRB;
if
(
rah
)
RIV_max
=
RIV_max50
;
else
RIV_max
=
0x1FFFF
;
RIV_max
=
0x1ffff
;
break
;
case
100
:
NPRB
=
RIV2nb_rb_LUT100
[
rballoc
];
//NPRB;
if
(
rah
)
RIV_max
=
RIV_max100
;
else
RIV_max
=
0x1FFFFFF
;
RIV_max
=
0x1ffffff
;
break
;
}
}
if
(
dci_format
==
format1
)
{
NPRB
=
conv_nprb
(
rah
,
rballoc
,
N_RB_DL
);
}
...
...
openair1/SIMULATION/LTE_PHY/dlsim.c
View file @
813a21e5
...
...
@@ -802,6 +802,7 @@ int main(int argc, char **argv)
case
'r'
:
DLSCH_RB_ALLOC
=
atoi
(
optarg
);
AssertFatal
(
DLSCH_RB_ALLOC
<=
0x1ffffff
,
"rballoc %x is not in an allowable range (0...0x1ffffff)
\n
"
,
DLSCH_RB_ALLOC
);
rballocset
=
1
;
break
;
...
...
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