diff options
author | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-08 14:43:10 +0000 |
---|---|---|
committer | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-08 14:43:10 +0000 |
commit | a7aae21ad0506972cade99171949aeeabb86d3cd (patch) | |
tree | e9fff5d89a50cf8ad363b39aafdf6e83184f9a5a /libmpcodecs | |
parent | a85effae4fdd76ebee492a13da912490604e9030 (diff) | |
download | mpv-a7aae21ad0506972cade99171949aeeabb86d3cd.tar.bz2 mpv-a7aae21ad0506972cade99171949aeeabb86d3cd.tar.xz |
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
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/pullup.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |