[vlc-commits] Fixed potential NULL dereference when openning splitted rar files.
Laurent Aimar
git at videolan.org
Wed Jan 4 23:14:36 CET 2012
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Jan 3 22:19:42 2012 +0100| [632b98d497c8c36b6bf1f61a8400501e293f51a4] | committer: Laurent Aimar
Fixed potential NULL dereference when openning splitted rar files.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=632b98d497c8c36b6bf1f61a8400501e293f51a4
---
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 cccaadb..7a42cbf 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