# HG changeset patch # User gpoirier # Date 1189262590 0 # Node ID eb7b1f3327aa7ca3e15b0bcc7ad92a54c0fab922 # Parent 30092ed6359209e1298b88233d4fb74572de59aa 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 diff -r 30092ed63592 -r eb7b1f3327aa libmpcodecs/pullup.c --- a/libmpcodecs/pullup.c Sat Sep 08 14:02:22 2007 +0000 +++ b/libmpcodecs/pullup.c Sat Sep 08 14:43:10 2007 +0000 @@ -795,6 +795,7 @@ free(c->buffers); f = c->head; do { + if (!f) break; free(f->diffs); free(f->comb); f = f->next;