--- a/mpserviceplugins/mpxsqlitedbcommon/src/mpxdbcommonutil.cpp Tue Jul 06 14:13:36 2010 +0300
+++ b/mpserviceplugins/mpxsqlitedbcommon/src/mpxdbcommonutil.cpp Wed Aug 18 09:46:20 2010 +0300
@@ -427,6 +427,7 @@
const TArray<TMPXAttribute>& aAttrs,
RArray<TInt>& aSupportedIds)
{
+ CleanupClosePushL(aSupportedIds);
MPX_FUNC("MPXDbCommonUtil::FillInSupportedUIDs");
TInt attrCount(aAttrs.Count());
@@ -457,6 +458,7 @@
// ignore attribute
}
}
+ CleanupStack::Pop();
}
// ----------------------------------------------------------------------------
@@ -601,6 +603,8 @@
MPX_FUNC("MPXDbCommonUtil::ProcessSingleQuotesLC");
// reserve space for all single quotes (double the size)
+ // coverity[incorrect_multiplication]
+ // coverity[buffer_alloc]
HBufC* value = HBufC::NewLC(aString.Length() * 2);
TPtr valuePtr(value->Des());
@@ -627,6 +631,8 @@
// reserve space for all percentage signs (triple the size because % should
// be replaced by %%)
TInt srcLen(aString.Length());
+ // coverity[incorrect_multiplication]
+ // coverity[buffer_alloc]
HBufC* targetString = HBufC::NewLC(aString.Length() * 3);
TPtr targetStringPtr(targetString->Des());