[vlc-commits] Fixed potential NULL dereference when openning splitted rar files.

Laurent Aimar git at videolan.org
Thu Jan 5 00:51:19 CET 2012


vlc/vlc-1.2 | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Jan  3 22:19:42 2012 +0100| [717d737151914b75fb9d2aacd8baa6057838eed9] | committer: Jean-Baptiste Kempf

Fixed potential NULL dereference when openning splitted rar files.
(cherry picked from commit 632b98d497c8c36b6bf1f61a8400501e293f51a4)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=717d737151914b75fb9d2aacd8baa6057838eed9
---

 modules/access/rar/rar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/rar/rar.c b/modules/access/rar/rar.c
index 05dcaf6..fb6539b 100644
--- a/modules/access/rar/rar.c
+++ b/modules/access/rar/rar.c
@@ -351,7 +351,7 @@ int RarParse(stream_t *s, int *count, rar_file_t ***file)
         if (vol != s)
             stream_Delete(vol);
 
-        if (!has_next) {
+        if (!has_next || !pattern) {
             free(volume_mrl);
             return VLC_SUCCESS;
         }



More information about the vlc-commits mailing list