Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
e3da-public
contiki-ng
Commits
5f6eee66
Commit
5f6eee66
authored
Feb 16, 2018
by
George Oikonomou
Browse files
Correctly check against minumum RX frame length
parent
9e15ace3
Changes
1
Hide whitespace changes
Inline
Side-by-side
arch/cpu/cc26xx-cc13xx/rf-core/ieee-mode.c
View file @
5f6eee66
...
...
@@ -1079,17 +1079,17 @@ read_frame(void *buf, unsigned short buf_len)
return
0
;
}
if
(
rx_read_entry
[
8
]
<
4
)
{
PRINTF
(
"RF: too short
\n
"
);
len
=
rx_read_entry
[
8
]
-
8
;
if
(
len
>
buf_len
)
{
PRINTF
(
"RF: too long
\n
"
);
release_data_entry
();
return
0
;
}
len
=
rx_read_entry
[
8
]
-
8
;
if
(
len
>
buf_len
)
{
PRINTF
(
"RF: too long
\n
"
);
if
(
len
<
5
)
{
PRINTF
(
"RF: too short
\n
"
);
release_data_entry
();
return
0
;
...
...
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