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
00192607
Commit
00192607
authored
Feb 26, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DVDread: avoid crashes over invalid cell_playback_offset values
Ref #8125
parent
9eb9367f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
modules/access/dvdread.c
modules/access/dvdread.c
+8
-0
No files found.
modules/access/dvdread.c
View file @
00192607
...
@@ -755,6 +755,12 @@ static int DvdReadSetArea( demux_t *p_demux, int i_title, int i_chapter,
...
@@ -755,6 +755,12 @@ static int DvdReadSetArea( demux_t *p_demux, int i_title, int i_chapter,
pgn
=
p_vts
->
vts_ptt_srpt
->
title
[
p_sys
->
i_ttn
-
1
].
ptt
[
0
].
pgn
;
pgn
=
p_vts
->
vts_ptt_srpt
->
title
[
p_sys
->
i_ttn
-
1
].
ptt
[
0
].
pgn
;
p_pgc
=
p_vts
->
vts_pgcit
->
pgci_srp
[
pgc_id
-
1
].
pgc
;
p_pgc
=
p_vts
->
vts_pgcit
->
pgci_srp
[
pgc_id
-
1
].
pgc
;
if
(
p_pgc
->
cell_playback
==
NULL
)
{
msg_Err
(
p_demux
,
"Invalid PGC (cell_playback_offset)"
);
return
VLC_EGENERIC
;
}
p_sys
->
i_title_start_cell
=
p_sys
->
i_title_start_cell
=
i_start_cell
=
p_pgc
->
program_map
[
pgn
-
1
]
-
1
;
i_start_cell
=
p_pgc
->
program_map
[
pgn
-
1
]
-
1
;
p_sys
->
i_title_start_block
=
p_sys
->
i_title_start_block
=
...
@@ -999,6 +1005,8 @@ static int DvdReadSetArea( demux_t *p_demux, int i_title, int i_chapter,
...
@@ -999,6 +1005,8 @@ static int DvdReadSetArea( demux_t *p_demux, int i_title, int i_chapter,
p_sys
->
i_ttn
-
1
].
ptt
[
i_chapter
].
pgn
;
p_sys
->
i_ttn
-
1
].
ptt
[
i_chapter
].
pgn
;
p_pgc
=
p_vts
->
vts_pgcit
->
pgci_srp
[
pgc_id
-
1
].
pgc
;
p_pgc
=
p_vts
->
vts_pgcit
->
pgci_srp
[
pgc_id
-
1
].
pgc
;
if
(
p_pgc
->
cell_playback
==
NULL
)
return
VLC_EGENERIC
;
/* Couldn't set chapter */
p_sys
->
i_cur_cell
=
p_pgc
->
program_map
[
pgn
-
1
]
-
1
;
p_sys
->
i_cur_cell
=
p_pgc
->
program_map
[
pgn
-
1
]
-
1
;
p_sys
->
i_chapter
=
i_chapter
;
p_sys
->
i_chapter
=
i_chapter
;
...
...
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