components/openexr/patches/004-openexr-1.6.1-CVE-2009-1721.patch
changeset 7697 8a41b565423d
parent 7696 3d9ec1a1fe4e
child 7698 3e4a47d57825
equal deleted inserted replaced
7696:3d9ec1a1fe4e 7697:8a41b565423d
     1 --- IlmImf/ImfAutoArray.h	2007-04-23 18:26:56.000000000 -0700
       
     2 +++ IlmImf/ImfAutoArray.h	2011-02-15 09:55:03.919979903 -0800
       
     3 @@ -57,7 +57,9 @@
       
     4      {
       
     5        public:
       
     6  
       
     7 -	 AutoArray (): _data (new T [size]) {}
       
     8 +	AutoArray (): _data (new T [size])
       
     9 +	{ (void) memset(_data, '\0', size * sizeof(T)); }
       
    10 +
       
    11  	~AutoArray () {delete [] _data;}
       
    12  
       
    13  	operator T * ()			{return _data;}