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
8348ef44
Commit
8348ef44
authored
Jan 01, 2016
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: xspf: fix leaks with unwanted attributes (cid #1253106)
parent
2b24884f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/demux/playlist/xspf.c
modules/demux/playlist/xspf.c
+4
-2
No files found.
modules/demux/playlist/xspf.c
View file @
8348ef44
...
...
@@ -626,6 +626,7 @@ static bool parse_extension_node COMPLEX_INTERFACE
{
if
(
!
psz_title
)
{
free
(
psz_application
);
msg_Warn
(
p_demux
,
"<vlc:node> requires
\"
title
\"
attribute"
);
return
false
;
}
...
...
@@ -639,12 +640,12 @@ static bool parse_extension_node COMPLEX_INTERFACE
p_input_item
=
p_new_input
;
b_release_input_item
=
true
;
}
free
(
psz_title
);
}
else
if
(
!
strcmp
(
psz_element
,
"extension"
))
{
if
(
!
psz_application
)
{
free
(
psz_title
);
msg_Warn
(
p_demux
,
"<extension> requires
\"
application
\"
attribute"
);
return
false
;
}
...
...
@@ -654,6 +655,7 @@ static bool parse_extension_node COMPLEX_INTERFACE
{
msg_Dbg
(
p_demux
,
"Skipping
\"
%s
\"
extension tag"
,
psz_application
);
free
(
psz_application
);
free
(
psz_title
);
/* Skip all children */
for
(
unsigned
lvl
=
1
;
lvl
;)
switch
(
xml_ReaderNextNode
(
p_xml_reader
,
NULL
))
...
...
@@ -666,7 +668,7 @@ static bool parse_extension_node COMPLEX_INTERFACE
}
}
free
(
psz_application
);
free
(
psz_title
);
/* parse the child elements */
while
((
i_node
=
xml_ReaderNextNode
(
p_xml_reader
,
&
name
))
>
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