[MPlayer-cvslog] r24363 - trunk/loader/dshow/cmediasample.c

voroshil subversion at mplayerhq.hu
Sat Sep 8 08:01:44 CEST 2007


Author: voroshil
Date: Sat Sep  8 08:01:43 2007
New Revision: 24363

Log:
Always initialize pUnk pointer with zero.
Should fix accidental crashes in various dshow/vfm binary codecs,
caused by attempting to release unallocated data.


Modified:
   trunk/loader/dshow/cmediasample.c

Modified: trunk/loader/dshow/cmediasample.c
==============================================================================
--- trunk/loader/dshow/cmediasample.c	(original)
+++ trunk/loader/dshow/cmediasample.c	Sat Sep  8 08:01:43 2007
@@ -526,6 +526,7 @@ CMediaSample* CMediaSampleCreate(IMemAll
     This->vt = (IMediaSample_vt*) malloc(sizeof(IMediaSample_vt));
     This->own_block = (char*) malloc((size_t)_size + SAFETY_ACEL);
     This->media_type.pbFormat = 0;
+    This->media_type.pUnk = 0;
 
     if (!This->vt || !This->own_block)
     {



More information about the MPlayer-cvslog mailing list