changeset 520:64ae7ac242b9

Fixed uninitialized buffer in mpglib. (Thanks, Phil!).
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 06 Jul 2007 11:29:02 +0000
parents 16cbfcb8d7fb
children 205a9b400da2
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]);