Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Olivier Crête
libnice
Commits
603ab1d4
Commit
603ab1d4
authored
Jan 03, 2019
by
Jakub Adam
Committed by
Olivier Crête
Jan 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udp-turn: Fix unaligned memory access on ARM
parent
3ec9f7eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
socket/udp-turn.c
socket/udp-turn.c
+2
-2
No files found.
socket/udp-turn.c
View file @
603ab1d4
...
...
@@ -362,7 +362,7 @@ socket_recv_messages (NiceSocket *sock,
guint
f_buffer_len
=
priv
->
fragment_buffer
->
len
;
for
(
i
=
0
;
i
<
n_recv_messages
&&
f_buffer_len
>=
sizeof
(
guint16
);
++
i
)
{
guint16
msg_len
=
ntohs
(
*
(
guint16
*
)
f_buffer
)
+
sizeof
(
guint16
);
guint16
msg_len
=
((
f_buffer
[
0
]
<<
8
)
|
f_buffer
[
1
]
)
+
sizeof
(
guint16
);
if
(
msg_len
>
f_buffer_len
)
{
/* The next message in the buffer isn't complete yet. Wait for more
...
...
@@ -452,7 +452,7 @@ socket_recv_messages (NiceSocket *sock,
* return. */
guint16
msg_len
=
0
;
if
(
!
priv
->
fragment_buffer
)
{
msg_len
=
ntohs
(
*
(
guint16
*
)
buffer
)
+
sizeof
(
guint16
);
msg_len
=
((
buffer
[
0
]
<<
8
)
|
buffer
[
1
]
)
+
sizeof
(
guint16
);
if
(
msg_len
>
parsed_buffer_length
)
{
/* The RFC4571 frame is larger than the current TURN message, need to
* buffer it and wait for more data. */
...
...
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