[MPlayer-cvslog] r18706 - trunk/subreader.c

gpoirier subversion at mplayerhq.hu
Wed Jun 14 13:17:22 CEST 2006


Author: gpoirier
Date: Wed Jun 14 13:17:21 2006
New Revision: 18706

Modified:
   trunk/subreader.c

Log:
fix uninitialized pointer value being passed to open_stream, where it is used in comparison.
Patch by Eugeniy Stepanov < eugeni P stepanov A gmail P com >
Original Thread:
Date: May 23, 2006 10:57 PM
Subject: [MPlayer-dev-eng] [BUG][PATCH] uninitialized memory access in subreader.c


Modified: trunk/subreader.c
==============================================================================
--- trunk/subreader.c	(original)
+++ trunk/subreader.c	Wed Jun 14 13:17:21 2006
@@ -1378,6 +1378,7 @@
     struct subreader *srp;
     
     if(filename==NULL) return NULL; //qnx segfault
+    i = 0;
     fd=open_stream (filename, NULL, &i); if (!fd) return NULL;
     
     sub_format=sub_autodetect (fd, &uses_time);



More information about the MPlayer-cvslog mailing list