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
canghaiwuhen
OpenXG-RAN
Commits
51b12592
Commit
51b12592
authored
Oct 20, 2020
by
Ding Yumei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix segmentation fault(ccch/dcch length eror)
parent
f3f67b5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+2
-2
No files found.
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
51b12592
...
...
@@ -702,7 +702,7 @@ rx_sdu(const module_id_t enb_mod_idP,
switch
(
rx_lcids
[
i
])
{
case
CCCH
:
if
((
rx_lengths
[
i
]
>
CCCH_PAYLOAD_SIZE_MAX
)
||
(
rx_lengths
[
i
]
<
0
)
||
(
rx_lengths
[
i
]
>
sdu_lenP
))
{
if
((
rx_lengths
[
i
]
>
CCCH_PAYLOAD_SIZE_MAX
)
||
(
rx_lengths
[
i
]
<
0
)
||
(
rx_lengths
[
i
]
>
(
sdu_lenP
-
(
payload_ptr
-
sduP
))
))
{
LOG_E
(
MAC
,
"[eNB %d/%d] frame %d received CCCH of size %d (too big, maximum allowed is %d, sdu_len %d), dropping packet
\n
"
,
enb_mod_idP
,
CC_idP
,
...
...
@@ -835,7 +835,7 @@ rx_sdu(const module_id_t enb_mod_idP,
LOG_T
(
MAC
,
"
\n
"
);
#endif
if
((
rx_lengths
[
i
]
>
DCH_PAYLOAD_SIZE_MAX
)
||
(
rx_lengths
[
i
]
<
0
)
||
(
rx_lengths
[
i
]
>
sdu_lenP
))
{
if
((
rx_lengths
[
i
]
>
DCH_PAYLOAD_SIZE_MAX
)
||
(
rx_lengths
[
i
]
<
0
)
||
(
rx_lengths
[
i
]
>
(
sdu_lenP
-
(
payload_ptr
-
sduP
))
))
{
LOG_E
(
MAC
,
"[eNB %d/%d] frame %d received DCCH of size %d (too big, maximum allowed is %d, sdu_len %d), dropping packet
\n
"
,
enb_mod_idP
,
CC_idP
,
...
...
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