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
ff208b73
Commit
ff208b73
authored
Aug 09, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DVDNav: fix dvdnav_describe_title_chapters crash
Close #6578
parent
5ee17b1c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
contrib/src/dvdnav/libdvdnav-searching.c-check-cellnr-before-indexing.patch
.../libdvdnav-searching.c-check-cellnr-before-indexing.patch
+17
-0
contrib/src/dvdnav/rules.mak
contrib/src/dvdnav/rules.mak
+1
-0
No files found.
contrib/src/dvdnav/libdvdnav-searching.c-check-cellnr-before-indexing.patch
0 → 100644
View file @
ff208b73
diff --git a/src/searching.c b/src/searching.c
index 3649e9d..0b5f22a 100644
--- a/src/searching.c
+++ b/src/searching.c
@@ -640,7 +640,11 @@
uint32_t dvdnav_describe_title_chapters(dvdnav_t *this, int32_t title, uint64_t
goto fail;
}
- cellnr = pgc->program_map[ptt[i].pgn-1];
+ if ((cellnr = pgc->program_map[ptt[i].pgn-1]) == 0) {
+ printerr("Cell new row cannot be 0");
+ continue;
+ }
+
if(ptt[i].pgn < pgc->nr_of_programs)
endcellnr = pgc->program_map[ptt[i].pgn];
else
contrib/src/dvdnav/rules.mak
View file @
ff208b73
...
...
@@ -18,6 +18,7 @@ $(TARBALLS)/libdvdnav-$(LIBDVDNAV_VERSION).tar.bz2:
dvdnav
:
libdvdnav-$(LIBDVDNAV_VERSION).tar.bz2 .sum-dvdnav
$(UNPACK)
$(APPLY)
$(SRC)
/dvdnav/dvdnav.patch
$(APPLY)
$(SRC)
/dvdnav/libdvdnav-searching.c-check-cellnr-before-indexing.patch
$(MOVE)
DEPS_dvdnav
=
dvdcss dvdread
...
...
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