From a7aae21ad0506972cade99171949aeeabb86d3cd Mon Sep 17 00:00:00 2001 From: gpoirier Date: Sat, 8 Sep 2007 14:43:10 +0000 Subject: 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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24370 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/pullup.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libmpcodecs') diff --git a/libmpcodecs/pullup.c b/libmpcodecs/pullup.c index 006934fc6f..04f2106572 100644 --- a/libmpcodecs/pullup.c +++ b/libmpcodecs/pullup.c @@ -795,6 +795,7 @@ void pullup_free_context(struct pullup_context *c) free(c->buffers); f = c->head; do { + if (!f) break; free(f->diffs); free(f->comb); f = f->next; -- cgit v1.2.3