Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6e245f46
Commit
6e245f46
authored
Nov 30, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mkv: fix use after free (cid #1049107)
GetMainName() can return a pointer to temporary string::
parent
28288a47
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
modules/demux/mkv/demux.cpp
modules/demux/mkv/demux.cpp
+2
-3
No files found.
modules/demux/mkv/demux.cpp
View file @
6e245f46
...
@@ -684,9 +684,8 @@ bool demux_sys_t::PreloadLinked()
...
@@ -684,9 +684,8 @@ bool demux_sys_t::PreloadLinked()
// TODO use a name for each edition, let the TITLE deal with a codec name
// TODO use a name for each edition, let the TITLE deal with a codec name
if
(
p_title
->
psz_name
==
NULL
)
if
(
p_title
->
psz_name
==
NULL
)
{
{
const
char
*
psz_tmp
=
p_ved
->
GetMainName
().
c_str
();
if
(
p_ved
->
GetMainName
().
length
()
)
if
(
*
psz_tmp
!=
'\0'
)
p_title
->
psz_name
=
strdup
(
p_ved
->
GetMainName
().
c_str
()
);
p_title
->
psz_name
=
strdup
(
psz_tmp
);
else
else
{
{
/* Check in tags if the edition has a name */
/* Check in tags if the edition has a name */
...
...
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