Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Robotlab
firefly
Commits
ce63c144
Commit
ce63c144
authored
Apr 28, 2014
by
Tommy Olofsson
Browse files
We had an use-after-free related to unrestrict. Zero the buflen when freeing.
parent
87d2235f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/protocol/firefly_protocol.c
View file @
ce63c144
...
...
@@ -604,6 +604,7 @@ int handle_data_sample_event(void *event_arg)
if
(
n
==
chan
->
n_decoder_types
-
1
)
{
FIREFLY_FREE
(
chan
->
seen_decoder_ids
);
chan
->
seen_decoder_ids
=
NULL
;
chan
->
n_decoder_types
=
0
;
/* State-ish */
channel_auto_restr_send_ack
(
chan
);
}
}
...
...
Write
Preview
Supports
Markdown
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