changeset 519:72efeb4643b6 stable-1.0

Fixed uninitialized buffer in mpglib. (Thanks, Phil!).
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 06 Jul 2007 11:29:02 +0000
parents 0f5888f9aef7
children f33471c47efe
files CHANGELOG decoders/mpglib/layer3.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGELOG	Sun Oct 29 07:14:48 2006 +0000
+++ b/CHANGELOG	Fri Jul 06 11:29:02 2007 +0000
@@ -2,6 +2,7 @@
  * CHANGELOG.
  */
 
+07062007 - Fixed uninitialized buffer in mpglib. (Thanks, Phil!).
 10292006 - Fixed bogus memory deference when SMPEG fails init (thanks, Chris!)
 10272006 - FLAC 1.1.3 breaks their API _again_, so we try to do the right
            thing at build time. (Thanks, Josh!).
--- a/decoders/mpglib/layer3.c	Sun Oct 29 07:14:48 2006 +0000
+++ b/decoders/mpglib/layer3.c	Fri Jul 06 11:29:02 2007 +0000
@@ -1922,6 +1922,7 @@
   {
     real hybridIn[2][SBLIMIT][SSLIMIT];
     real hybridOut[2][SSLIMIT][SBLIMIT];
+    memset(hybridIn, '\0', sizeof (hybridIn));
 
     {
       struct gr_info_s *gr_info = &(sideinfo.ch[0].gr[gr]);