changeset 24667:036c49377d02

Make sure there is no uninitialized data in BITMAPINFOHEADER created by fli demuxer
author reimar
date Tue, 02 Oct 2007 19:18:33 +0000
parents 58480b6d333f
children d1f106c4e730
files libmpdemux/demux_fli.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_fli.c	Tue Oct 02 19:13:23 2007 +0000
+++ b/libmpdemux/demux_fli.c	Tue Oct 02 19:18:33 2007 +0000
@@ -80,7 +80,7 @@
   stream_reset(demuxer->stream);
   stream_seek(demuxer->stream, 0);
 
-  header = malloc(sizeof(BITMAPINFOHEADER) + 128);
+  header = calloc(1, sizeof(BITMAPINFOHEADER) + 128);
   stream_read(demuxer->stream, header + sizeof(BITMAPINFOHEADER), 128);
   stream_seek(demuxer->stream, 0);