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
f3f67b5b
Commit
f3f67b5b
authored
Oct 20, 2020
by
Ding Yumei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix segmentation fault(ul error)
parent
ff202293
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+2
-3
No files found.
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
f3f67b5b
...
@@ -893,9 +893,8 @@ rx_sdu(const module_id_t enb_mod_idP,
...
@@ -893,9 +893,8 @@ rx_sdu(const module_id_t enb_mod_idP,
LOG_T
(
MAC
,
"
\n
"
);
LOG_T
(
MAC
,
"
\n
"
);
#endif
#endif
if
(
rx_lcids
[
i
]
<
NB_RB_MAX
)
{
if
(
rx_lcids
[
i
]
<
NB_RB_MAX
)
{
if
((
rx_lengths
[
i
]
>
SCH_PAYLOAD_SIZE_MAX
)
||
(
rx_lengths
[
i
]
<
0
)
||
(
rx_lengths
[
i
]
>
sdu_lenP
))
{
if
((
rx_lengths
[
i
]
>
SCH_PAYLOAD_SIZE_MAX
)
||
(
rx_lengths
[
i
]
<
0
)
||
(
rx_lengths
[
i
]
>
(
sdu_lenP
-
(
payload_ptr
-
sduP
))
))
{
LOG_E
(
MAC
,
"[eNB %d/%d] frame %d received DTCH of size %d (too big, maximum allowed is %d, sdu_len %d), dropping packet
\n
"
,
LOG_E
(
MAC
,
"[eNB %d/%d] frame %d received DTCH of size %d (too big, maximum allowed is %d, sdu_len %d), dropping packet
\n
"
,
enb_mod_idP
,
enb_mod_idP
,
CC_idP
,
CC_idP
,
...
@@ -992,7 +991,7 @@ rx_sdu(const module_id_t enb_mod_idP,
...
@@ -992,7 +991,7 @@ rx_sdu(const module_id_t enb_mod_idP,
payload_ptr
+=
rx_lengths
[
i
];
payload_ptr
+=
rx_lengths
[
i
];
}
else
{
}
else
{
LOG_E
(
MAC
,
"[eNB %d/%d] frame %d subframe %d rnti %x sdu_len %d remain_len %d rx_lengths %d
\n
"
,
LOG_E
(
MAC
,
"[eNB %d/%d] frame %d subframe %d rnti %x sdu_len %d remain_len %d rx_lengths %d
\n
"
,
enb_mod_idP
,
CC_idP
,
frameP
,
subframeP
,
rntiP
,
sdu_lenP
,(
uint16_t
)(
payload_ptr
-
sduP
),
rx_lengths
[
i
]);
enb_mod_idP
,
CC_idP
,
frameP
,
subframeP
,
rntiP
,
sdu_lenP
,(
uint16_t
)(
sdu_lenP
-
(
payload_ptr
-
sduP
)
),
rx_lengths
[
i
]);
return
;
return
;
}
}
}
}
...
...
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