ooo-build r12541 - in trunk: . patches/dev300



Author: rodo
Date: Wed May 14 10:38:36 2008
New Revision: 12541
URL: http://svn.gnome.org/viewvc/ooo-build?rev=12541&view=rev

Log:
2008-05-14  Radek Doulik  <rodo novell com>

	* store/source/stordata.hxx: fix two == operators where NULL might
	get dereferenced

	* patches/dev300/store-core.diff: updated with changes above



Modified:
   trunk/ChangeLog
   trunk/patches/dev300/store-core.diff

Modified: trunk/patches/dev300/store-core.diff
==============================================================================
--- trunk/patches/dev300/store-core.diff	(original)
+++ trunk/patches/dev300/store-core.diff	Wed May 14 10:38:36 2008
@@ -2270,7 +2270,7 @@
  
  		/** Construction.
  		*/
-@@ -419,15 +499,232 @@ struct OStoreDirectoryDataBlock
+@@ -419,15 +499,235 @@ struct OStoreDirectoryDataBlock
  		void swap (void);
  	};
  
@@ -2335,7 +2335,10 @@
 +	sal_Bool operator== (const OStoreDirectoryDataBlockV1& rOther) const
 +	{
 +        if (m_pRepresentation == NULL && rOther.m_pRepresentation == NULL)
-+            sal_True;
++            return sal_True;
++
++        if (m_pRepresentation == NULL || rOther.m_pRepresentation == NULL)
++            return sal_False;
 +
 +		return (m_pRepresentation->m_aGuard == rOther.m_pRepresentation->m_aGuard);
 +	}
@@ -2508,7 +2511,7 @@
  	{
  		return sal_uInt16(sizeof(G) + sizeof(LinkTable) + sizeof(sal_uInt32));
  	}
-@@ -436,22 +733,50 @@ struct OStoreDirectoryDataBlock
+@@ -436,22 +733,53 @@ struct OStoreDirectoryDataBlock
  	*/
  	void initialize (void)
  	{
@@ -2561,7 +2564,10 @@
  	{
 -		return (m_aGuard == rOther.m_aGuard);
 +        if (m_pRepresentation == NULL && rOther.m_pRepresentation == NULL)
-+            sal_True;
++            return sal_True;
++
++        if (m_pRepresentation == NULL || rOther.m_pRepresentation == NULL)
++            return sal_False;
 +
 +		return (m_pRepresentation->m_aGuard == rOther.m_pRepresentation->m_aGuard);
  	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]