equal
deleted
inserted
replaced
2669 _LIT( KRelated, "att1.txt"); |
2669 _LIT( KRelated, "att1.txt"); |
2670 mimeHeaders->SetSuggestedFilenameL( KRelated ); |
2670 mimeHeaders->SetSuggestedFilenameL( KRelated ); |
2671 // attaData must point to the text |
2671 // attaData must point to the text |
2672 // buffer long enough for conversion |
2672 // buffer long enough for conversion |
2673 const TInt KMmsConversionMultiplier = 5; |
2673 const TInt KMmsConversionMultiplier = 5; |
|
2674 // coverity[incorrect_multiplication][buffer_alloc] |
2674 HBufC8* dataContent = HBufC8::NewL( |
2675 HBufC8* dataContent = HBufC8::NewL( |
2675 iMmsHeaders->ExtendedNotification().Length() * KMmsConversionMultiplier ); |
2676 iMmsHeaders->ExtendedNotification().Length() * KMmsConversionMultiplier ); |
2676 CleanupStack::PushL( dataContent ); |
2677 CleanupStack::PushL( dataContent ); |
2677 TPtr8 attaData = dataContent->Des(); |
2678 TPtr8 attaData = dataContent->Des(); |
2678 CnvUtfConverter::ConvertFromUnicodeToUtf8( |
2679 CnvUtfConverter::ConvertFromUnicodeToUtf8( |
3860 CleanupClosePushL( fs ); |
3861 CleanupClosePushL( fs ); |
3861 |
3862 |
3862 HBufC8* bufferPointer = HBufC8::NewL( KMaxFileName ); |
3863 HBufC8* bufferPointer = HBufC8::NewL( KMaxFileName ); |
3863 CleanupStack::PushL( bufferPointer ); |
3864 CleanupStack::PushL( bufferPointer ); |
3864 TPtr8 buffer = bufferPointer->Des(); |
3865 TPtr8 buffer = bufferPointer->Des(); |
3865 |
3866 // coverity[assign_zero] |
3866 CDir* fileList = NULL; |
3867 CDir* fileList = NULL; |
3867 |
3868 |
3868 // create notifications for local messages: |
3869 // create notifications for local messages: |
3869 if ( iMmsSettings->LocalMode() ) |
3870 if ( iMmsSettings->LocalMode() ) |
3870 { |
3871 { |
3925 #ifndef _NO_MMSS_LOGGING_ |
3926 #ifndef _NO_MMSS_LOGGING_ |
3926 TMmsLogger::Log( _L("found %d files in %S"), count, &fileNamePtr ); |
3927 TMmsLogger::Log( _L("found %d files in %S"), count, &fileNamePtr ); |
3927 #endif |
3928 #endif |
3928 for (i = 0; i < count; i++ ) |
3929 for (i = 0; i < count; i++ ) |
3929 { |
3930 { |
|
3931 // coverity[var_deref_model] |
3930 iParse.Set( ( ( *fileList )[i] ).iName, &fileNamePtr, NULL ); |
3932 iParse.Set( ( ( *fileList )[i] ).iName, &fileNamePtr, NULL ); |
3931 buffer.Copy( iParse.FullName() ); |
3933 buffer.Copy( iParse.FullName() ); |
3932 |
3934 |
3933 size = fs.Entry( iParse.FullName(), *entry ); |
3935 size = fs.Entry( iParse.FullName(), *entry ); |
3934 size = entry->iSize; |
3936 size = entry->iSize; |