mpserviceplugins/mpxsqlitedbcommon/src/mpxdbmanager.cpp
changeset 47 4cc1412daed0
parent 45 612c4815aebe
--- a/mpserviceplugins/mpxsqlitedbcommon/src/mpxdbmanager.cpp	Fri Jul 23 17:31:12 2010 -0500
+++ b/mpserviceplugins/mpxsqlitedbcommon/src/mpxdbmanager.cpp	Fri Aug 06 16:51:36 2010 -0500
@@ -505,7 +505,7 @@
     CleanupClosePushL( dstFile );
     
     // resize destination file
-    TInt remainingBytes;
+    TInt remainingBytes = 0;
     User::LeaveIfError( srcFile.Size(remainingBytes) );
     User::LeaveIfError( dstFile.SetSize(remainingBytes) );
 
@@ -1854,6 +1854,8 @@
             {
             delete database.iAliasname;
             database.iAliasname = HBufC::NewL(KAliasName().Length());
+            // coverity[size_error]
+            // coverity[buffer_alloc]
             HBufC* temp = HBufC::NewLC(2); // form of DE, DF, DX,...
             temp->Des().Append(iRAMDrive); // length == 2
             TDriveUnit pdrive( database.iDrive );
@@ -2208,6 +2210,8 @@
     {
     TInt columnCount(GetColumnCountL(aStatement));
     TInt err(KErrNone);
+    // coverity[incorrect_multiplication]
+    // coverity[buffer_alloc]
     HBufC* tableRow = HBufC::NewLC(255 * columnCount);
     TPtr tableRowPtr = tableRow->Des();