ref: 19255b8fe0cbc4d3b7d98650e9cdcadd95c762b9
parent: ad6150f7697ce486630c75cb53fa607928ced4c7
author: John Koleszar <jkoleszar@google.com>
date: Tue Nov 23 08:40:31 EST 2010
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
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -442,6 +442,8 @@
int is_raw = 0;
vpx_codec_stream_info_t si;
+ si.sz = sizeof(si);
+
if (fread(buf, 1, 32, infile) == 32)
{
int i;
--
⑨