openbsd-ports/x11/vlc/patches/patch-modules_access_mms_mmstu_c
dcoppa 25d9cd0797 - Fix a potential crash with MMS.
- Don't free uninitialized ES format descriptor for DV muxed in AVI.

From upstream via Brad.
OK sthen@
2011-05-08 16:20:16 +00:00

16 lines
504 B
Plaintext

$OpenBSD: patch-modules_access_mms_mmstu_c,v 1.3 2011/05/08 16:20:16 dcoppa Exp $
Fix a potential crash.
--- modules/access/mms/mmstu.c.orig Fri May 6 18:26:32 2011
+++ modules/access/mms/mmstu.c Fri May 6 18:26:58 2011
@@ -643,7 +643,7 @@ static int MMSOpen( access_t *p_access, vlc_url_t *p_
/* media file path shouldn't start with / character */
mediapath = p_url->psz_path;
- if ( *mediapath == '/' )
+ if ( mediapath && *mediapath == '/' )
{
mediapath++;
}