[vlc-commits] commit: VCD: fix segfault when opening not-a-file ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Sat May 29 09:53:27 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 29 10:53:12 2010 +0300| [8b3ba34657edbbeec13ef70cbaa966d6a735aed5] | committer: Rémi Denis-Courmont
VCD: fix segfault when opening not-a-file
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8b3ba34657edbbeec13ef70cbaa966d6a735aed5
---
modules/access/vcd/vcd.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/access/vcd/vcd.c b/modules/access/vcd/vcd.c
index 482625b..97e7454 100644
--- a/modules/access/vcd/vcd.c
+++ b/modules/access/vcd/vcd.c
@@ -96,6 +96,9 @@ static int Open( vlc_object_t *p_this )
{
access_t *p_access = (access_t *)p_this;
access_sys_t *p_sys;
+ if( p_access->psz_filepath == NULL )
+ return VLC_EGENERIC;
+
char *psz_dup = ToLocaleDup( p_access->psz_filepath );
char *psz;
int i_title = 0;
More information about the vlc-commits
mailing list