Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
de1aedd6
Commit
de1aedd6
authored
Jun 17, 2006
by
Christophe Mutricy
Browse files
src/misc/stats.c: avoid buffer underflow.
parent
ab248b85
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/misc/stats.c
View file @
de1aedd6
...
...
@@ -382,11 +382,13 @@ void stats_CounterClean( counter_t *p_c )
int
i
;
if
(
p_c
)
{
for
(
i
=
p_c
->
i_samples
-
1
;
i
>=
0
;
i
--
)
i
=
p_c
->
i_samples
-
1
;
while
(
i
>=
0
)
{
counter_sample_t
*
p_s
=
p_c
->
pp_samples
[
i
];
REMOVE_ELEM
(
p_c
->
pp_samples
,
p_c
->
i_samples
,
i
);
free
(
p_s
);
i
--
;
}
if
(
p_c
->
psz_name
)
free
(
p_c
->
psz_name
);
free
(
p_c
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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