[vlc-devel] commit: Fixed a segfault in access directory. (Laurent Aimar )

git version control git at videolan.org
Thu Oct 9 01:24:37 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Oct  9 01:23:54 2008 +0200| [79aa73967fe632eeaeac23c5c727ca1b0f9ee7e0] | committer: Laurent Aimar 

Fixed a segfault in access directory.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=79aa73967fe632eeaeac23c5c727ca1b0f9ee7e0
---

 modules/access/directory.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/access/directory.c b/modules/access/directory.c
index 03d8df0..f829443 100644
--- a/modules/access/directory.c
+++ b/modules/access/directory.c
@@ -353,6 +353,9 @@ static block_t *Block (access_t *p_access)
                 if (type + extlen == end
                  && !strncasecmp (ext, type, extlen))
                     return NULL;
+
+                if (*end == '\0')
+                    break;
             }
         }
     }




More information about the vlc-devel mailing list