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
26d92b87
Commit
26d92b87
authored
Oct 18, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix (yet another) TiVo demux overflow.
Reported by Tobias Klein <tk@trapkit.de>
parent
2132eade
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/demux/ty.c
modules/demux/ty.c
+3
-1
No files found.
modules/demux/ty.c
View file @
26d92b87
...
@@ -1639,12 +1639,14 @@ static void parse_master(demux_t *p_demux)
...
@@ -1639,12 +1639,14 @@ static void parse_master(demux_t *p_demux)
/* parse all the entries */
/* parse all the entries */
p_sys
->
seq_table
=
malloc
(
p_sys
->
i_seq_table_size
*
sizeof
(
ty_seq_table_t
));
p_sys
->
seq_table
=
malloc
(
p_sys
->
i_seq_table_size
*
sizeof
(
ty_seq_table_t
));
for
(
i
=
0
;
i
<
p_sys
->
i_seq_table_size
;
i
++
)
{
for
(
i
=
0
;
i
<
p_sys
->
i_seq_table_size
;
i
++
)
{
stream_Read
(
p_demux
->
s
,
mst_buf
,
8
+
i_map_size
);
stream_Read
(
p_demux
->
s
,
mst_buf
,
8
);
p_sys
->
seq_table
[
i
].
l_timestamp
=
U64_AT
(
&
mst_buf
[
0
]);
p_sys
->
seq_table
[
i
].
l_timestamp
=
U64_AT
(
&
mst_buf
[
0
]);
if
(
i_map_size
>
8
)
{
if
(
i_map_size
>
8
)
{
msg_Err
(
p_demux
,
"Unsupported SEQ bitmap size in master chunk"
);
msg_Err
(
p_demux
,
"Unsupported SEQ bitmap size in master chunk"
);
stream_Read
(
p_demux
->
s
,
NULL
,
i_map_size
);
memset
(
p_sys
->
seq_table
[
i
].
chunk_bitmask
,
i_map_size
,
0
);
memset
(
p_sys
->
seq_table
[
i
].
chunk_bitmask
,
i_map_size
,
0
);
}
else
{
}
else
{
stream_Read
(
p_demux
->
s
,
mst_buf
+
8
,
i_map_size
);
memcpy
(
p_sys
->
seq_table
[
i
].
chunk_bitmask
,
&
mst_buf
[
8
],
i_map_size
);
memcpy
(
p_sys
->
seq_table
[
i
].
chunk_bitmask
,
&
mst_buf
[
8
],
i_map_size
);
}
}
}
}
...
...
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