diff -r d8ac8e5e4721 -r fc91263aee62 mmsengine/mmscodec/src/mmsencode.cpp --- a/mmsengine/mmscodec/src/mmsencode.cpp Tue Sep 14 22:54:56 2010 +0530 +++ b/mmsengine/mmscodec/src/mmsencode.cpp Fri Sep 17 20:01:45 2010 +0530 @@ -1517,6 +1517,7 @@ // Using non-ascii characters in filename parameter is allowed // The filename must be encoded either using base64 or quoted printable HBufC8* temp = NULL; + // coverity[size_error][buffer_alloc] temp = CnvUtfConverter::ConvertFromUnicodeToUtf8L( originalName ); CleanupStack::PushL( temp ); // Now we have the filename in utf-8. @@ -3332,7 +3333,8 @@ // we must convert to utf-8 //one ucs-2 character should never produce more than 4 bytes when converted to utf-8 - HBufC8* buffer = HBufC8::NewL( aString.Length() * KMms4 ); // paranoid. + // coverity[incorrect_multiplication][buffer_alloc] + HBufC8* buffer = HBufC8::NewL( aString.Length() * KMms4 ); // paranoid. // we don't leave while we need buffer TPtr8 buf8 = buffer->Des(); @@ -3545,6 +3547,7 @@ // must be added // one ucs-2 character will not produce more than 4 bytes when converted to utf-8 + // coverity[incorrect_multiplication][buffer_alloc] HBufC8* buffer = HBufC8::NewL( aSender.Length() * KMms4 ); // paranoid. // we don't need to push buffer onto cleanup stack, as we don't // leave while we are using it @@ -4896,7 +4899,7 @@ return EFalse; } - TInt maxLength; + TInt maxLength=0; error = attachFile.Size(maxLength); if( error != KErrNone || maxLength == 0 ) {