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
littleBu
OpenXG-RAN
Commits
712988d4
Commit
712988d4
authored
Oct 18, 2024
by
Robert Schmidt
Committed by
Laurent THOMAS
Oct 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NAS message encoding: avoid unaligned access through memcpy()
parent
e94f59ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
openair3/NAS/COMMON/API/NETWORK/nas_message.c
openair3/NAS/COMMON/API/NETWORK/nas_message.c
+2
-1
No files found.
openair3/NAS/COMMON/API/NETWORK/nas_message.c
View file @
712988d4
...
...
@@ -535,7 +535,8 @@ int nas_message_encode(
#endif
emm_security_context
);
/* Set the message authentication code of the NAS message */
*
(
uint32_t
*
)(
buffer
+
sizeof
(
uint8_t
))
=
htonl
(
mac
);
uint32_t
mac_nl
=
htonl
(
mac
);
memcpy
(
buffer
+
sizeof
(
uint8_t
),
&
mac_nl
,
sizeof
(
mac_nl
));
if
(
emm_security_context
)
{
#ifdef NAS_MME
...
...
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