Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc
Commits
c38c370d
Commit
c38c370d
authored
Sep 17, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix potential use after free
- Fix segfault if there is no preparse and/or fetcher object
parent
132d6e2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/playlist/thread.c
src/playlist/thread.c
+8
-8
No files found.
src/playlist/thread.c
View file @
c38c370d
...
...
@@ -143,22 +143,22 @@ int playlist_ThreadDestroy( playlist_t * p_playlist )
// Kill preparser
if
(
p_playlist
->
p_preparse
)
{
vlc_cond_signal
(
&
p_playlist
->
p_preparse
->
object_wait
);
vlc_object_kill
(
p_playlist
->
p_preparse
);
vlc_thread_join
(
p_playlist
->
p_preparse
);
free
(
p_playlist
->
p_preparse
->
pp_waiting
);
vlc_object_detach
(
p_playlist
->
p_preparse
);
vlc_object_destroy
(
p_playlist
->
p_preparse
);
}
vlc_thread_join
(
p_playlist
->
p_preparse
);
vlc_object_detach
(
p_playlist
->
p_preparse
);
vlc_object_destroy
(
p_playlist
->
p_preparse
);
// Kill meta fetcher
if
(
p_playlist
->
p_fetcher
)
{
vlc_cond_signal
(
&
p_playlist
->
p_fetcher
->
object_wait
);
vlc_object_kill
(
p_playlist
->
p_fetcher
);
vlc_thread_join
(
p_playlist
->
p_fetcher
);
free
(
p_playlist
->
p_fetcher
->
p_waiting
);
vlc_object_detach
(
p_playlist
->
p_fetcher
);
vlc_object_destroy
(
p_playlist
->
p_fetcher
);
}
vlc_thread_join
(
p_playlist
->
p_fetcher
);
vlc_object_detach
(
p_playlist
->
p_fetcher
);
vlc_object_destroy
(
p_playlist
->
p_fetcher
);
// Wait for thread to complete
vlc_thread_join
(
p_playlist
);
...
...
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