Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
6d3c22f2
Commit
6d3c22f2
authored
Sep 15, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zero tab entries when you allocate them
Fix unitialized pointer usages (possibly exploitable).
parent
6c7ad302
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
17 deletions
+14
-17
modules/demux/playlist/xspf.c
modules/demux/playlist/xspf.c
+14
-17
No files found.
modules/demux/playlist/xspf.c
View file @
6d3c22f2
...
...
@@ -498,25 +498,22 @@ static bool parse_track_node COMPLEX_INTERFACE
if
(
!
strcmp
(
psz_name
,
psz_element
)
)
{
FREE_ATT
();
if
(
p_demux
->
p_sys
->
i_identifier
<
if
(
p_demux
->
p_sys
->
i_identifier
>=
p_demux
->
p_sys
->
i_tracklist_entries
)
{
p_demux
->
p_sys
->
pp_tracklist
[
p_demux
->
p_sys
->
i_identifier
]
=
p_new_input
;
}
else
{
if
(
p_demux
->
p_sys
->
i_identifier
>
input_item_t
**
pp
;
pp
=
realloc
(
p_demux
->
p_sys
->
pp_tracklist
,
(
p_demux
->
p_sys
->
i_identifier
+
1
)
*
sizeof
(
*
pp
)
);
if
(
!
pp
)
return
false
;
p_demux
->
p_sys
->
pp_tracklist
=
pp
;
while
(
p_demux
->
p_sys
->
i_identifier
>=
p_demux
->
p_sys
->
i_tracklist_entries
)
{
p_demux
->
p_sys
->
i_tracklist_entries
=
p_demux
->
p_sys
->
i_identifier
;
}
INSERT_ELEM
(
p_demux
->
p_sys
->
pp_tracklist
,
p_demux
->
p_sys
->
i_tracklist_entries
,
p_demux
->
p_sys
->
i_tracklist_entries
,
p_new_input
);
pp
[
p_demux
->
p_sys
->
i_tracklist_entries
++
]
=
NULL
;
}
p_demux
->
p_sys
->
pp_tracklist
[
p_demux
->
p_sys
->
i_identifier
]
=
p_new_input
;
return
true
;
}
/* there MUST have been a start tag for that element 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