From 19255b8fe0cbc4d3b7d98650e9cdcadd95c762b9 Mon Sep 17 00:00:00 2001 From: John Koleszar Date: Tue, 23 Nov 2010 13:40:31 -0500 Subject: [PATCH] vpxdec: fix use of uninitialized memory for raw files The sz member of the vpx_codec_stream_info_t structure must be initialized when passed to vpx_codec_peek_stream_info(). Change-Id: I2d13d287d9639262b932cf44671a595fdf3c38ef --- vpxdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vpxdec.c b/vpxdec.c index 5eb0bebde..dd1796380 100644 --- a/vpxdec.c +++ b/vpxdec.c @@ -442,6 +442,8 @@ unsigned int file_is_raw(FILE *infile, int is_raw = 0; vpx_codec_stream_info_t si; + si.sz = sizeof(si); + if (fread(buf, 1, 32, infile) == 32) { int i; -- 2.40.0