[MPlayer-cvslog] r24370 - trunk/libmpcodecs/pullup.c

gpoirier subversion at mplayerhq.hu
Sat Sep 8 16:43:10 CEST 2007


Author: gpoirier
Date: Sat Sep  8 16:43:10 2007
New Revision: 24370

Log:
Add a check for c->head being NULL in pullup_free_context().
This fixes crashes when an invalid filter chain is built
Patch by Alexander Strange % astrange A ithinksw P com %
Original thread:
date: Sep 7, 2007 8:47 PM	 
subject: [MPlayer-dev-eng] [PATCH] crash in pullup with invalid filters


Modified:
   trunk/libmpcodecs/pullup.c

Modified: trunk/libmpcodecs/pullup.c
==============================================================================
--- trunk/libmpcodecs/pullup.c	(original)
+++ trunk/libmpcodecs/pullup.c	Sat Sep  8 16:43:10 2007
@@ -795,6 +795,7 @@ void pullup_free_context(struct pullup_c
 	free(c->buffers);
 	f = c->head;
 	do {
+		if (!f) break;
 		free(f->diffs);
 		free(f->comb);
 		f = f->next;



More information about the MPlayer-cvslog mailing list