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
43f3d03d
Commit
43f3d03d
authored
Oct 28, 2022
by
Angelo Athanassopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PSEA - IEI DNN - protect code from a bad DNN length received from the network
parent
8e4ebb07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
openair3/NAS/COMMON/ESM/MSG/PduSessionEstablishmentAccept.c
openair3/NAS/COMMON/ESM/MSG/PduSessionEstablishmentAccept.c
+7
-3
No files found.
openair3/NAS/COMMON/ESM/MSG/PduSessionEstablishmentAccept.c
View file @
43f3d03d
...
...
@@ -169,10 +169,14 @@ void capture_pdu_session_establishment_accept_msg(uint8_t *buffer, uint32_t msg_
psea_msg
.
dnn_ie
.
dnn_length
=
*
(
buffer
+
offset
++
);
char
apn
[
APN_MAX_LEN
];
for
(
int
i
=
0
;
i
<
psea_msg
.
dnn_ie
.
dnn_length
;
++
i
)
apn
[
i
]
=
*
(
buffer
+
offset
+
i
);
if
(
psea_msg
.
dnn_ie
.
dnn_length
<=
APN_MAX_LEN
&&
psea_msg
.
dnn_ie
.
dnn_length
>=
APN_MIN_LEN
)
{
for
(
int
i
=
0
;
i
<
psea_msg
.
dnn_ie
.
dnn_length
;
++
i
)
apn
[
i
]
=
*
(
buffer
+
offset
+
i
);
LOG_T
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - APN: %s
\n
"
,
apn
);
}
else
LOG_E
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - DNN IE has invalid length
\n
"
);
LOG_T
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - APN: %s
\n
"
,
apn
);
offset
+=
psea_msg
.
dnn_ie
.
dnn_length
;
psea_iei
=
*
(
buffer
+
offset
++
);
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