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
eaa5b320
Commit
eaa5b320
authored
Feb 12, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addons: handle unclosed addon tags
cid #1170827 cid #1170828
parent
ad5dda25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
modules/misc/addons/fsstorage.c
modules/misc/addons/fsstorage.c
+5
-0
modules/misc/addons/vorepository.c
modules/misc/addons/vorepository.c
+4
-0
No files found.
modules/misc/addons/fsstorage.c
View file @
eaa5b320
...
...
@@ -690,6 +690,9 @@ static int LoadCatalog( addons_finder_t *p_finder )
{
if
(
!
strcmp
(
p_node
,
"addon"
)
)
{
if
(
p_entry
)
/* ?!? Unclosed tag */
addon_entry_Release
(
p_entry
);
p_entry
=
addon_entry_New
();
//p_entry->psz_source_module = strdup( ADDONS_MODULE_SHORTCUT );
p_entry
->
e_flags
=
ADDON_MANAGEABLE
;
...
...
@@ -796,6 +799,8 @@ static int LoadCatalog( addons_finder_t *p_finder )
}
end:
if
(
p_entry
)
/* ?!? Unclosed tag */
addon_entry_Release
(
p_entry
);
xml_ReaderDelete
(
p_xml_reader
);
stream_Delete
(
p_stream
);
return
i_ret
;
...
...
modules/misc/addons/vorepository.c
View file @
eaa5b320
...
...
@@ -228,6 +228,8 @@ static int ParseCategoriesInfo( addons_finder_t *p_finder, stream_t *p_stream )
{
if
(
!
strcmp
(
p_node
,
"addon"
)
)
{
if
(
p_entry
)
/* Unclosed tag */
addon_entry_Release
(
p_entry
);
p_entry
=
addon_entry_New
();
p_entry
->
psz_source_module
=
strdup
(
ADDONS_MODULE_SHORTCUT
);
p_entry
->
e_flags
=
ADDON_MANAGEABLE
;
...
...
@@ -303,6 +305,8 @@ static int ParseCategoriesInfo( addons_finder_t *p_finder, stream_t *p_stream )
}
end:
if
(
p_entry
)
/* Unclosed tag */
addon_entry_Release
(
p_entry
);
xml_ReaderDelete
(
p_xml_reader
);
return
i_num_entries_created
;
}
...
...
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