summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2002-10-23 19:25:44 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2002-10-23 19:25:44 +0000
commit789d399b47af0556b5b27ebfc7d54d750e39a41d (patch)
tree45be633bef28fa2a679692e24cdc8d876110c22e
parent097fc09ffdc2c3a7ae8cd5749cc36f3577c33978 (diff)
downloadxine-lib-789d399b47af0556b5b27ebfc7d54d750e39a41d.tar.gz
xine-lib-789d399b47af0556b5b27ebfc7d54d750e39a41d.tar.bz2
img_buffer was uninitialized, and later passed to free(), resulting in an
xine crash. CVS patchset: 2969 CVS date: 2002/10/23 19:25:44
-rw-r--r--src/libxinevdec/cinepak.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libxinevdec/cinepak.c b/src/libxinevdec/cinepak.c
index c91ac095c..429c5431f 100644
--- a/src/libxinevdec/cinepak.c
+++ b/src/libxinevdec/cinepak.c
@@ -22,7 +22,7 @@
* based on overview of Cinepak algorithm and example decoder
* by Tim Ferguson: http://www.csse.monash.edu.au/~timf/
*
- * $Id: cinepak.c,v 1.16 2002/10/20 16:47:05 tmmm Exp $
+ * $Id: cinepak.c,v 1.17 2002/10/23 19:25:44 jkeil Exp $
*/
#include <stdlib.h>
@@ -486,6 +486,7 @@ static video_decoder_t *open_plugin (video_decoder_class_t *class_gen, xine_stre
this->decoder_ok = 0;
this->buf = NULL;
+ this->img_buffer = NULL;
return &this->video_decoder;
}