mpx/commonframework/common/src/mpxdrmmediawmaagent.cpp
branchRCL_3
changeset 56 63223d4fd956
parent 55 6c1dfe4da5dd
equal deleted inserted replaced
55:6c1dfe4da5dd 56:63223d4fd956
   703                     TLex lex( timePtr.Mid( finddash + 1, KMPXWmaDrmDashCount ) );
   703                     TLex lex( timePtr.Mid( finddash + 1, KMPXWmaDrmDashCount ) );
   704                     TInt dateInt;
   704                     TInt dateInt;
   705                     User::LeaveIfError( lex.Val( dateInt ) );
   705                     User::LeaveIfError( lex.Val( dateInt ) );
   706                     --dateInt;
   706                     --dateInt;
   707                     // convert back to buffer
   707                     // convert back to buffer
   708                     // coverity[size_error]
       
   709                     // coverity[buffer_alloc]
       
   710                     HBufC* datebuf = HBufC::NewLC( KMPXWmaDrmMaxTimeBufSize );
   708                     HBufC* datebuf = HBufC::NewLC( KMPXWmaDrmMaxTimeBufSize );
   711                     TPtr datebufPtr = datebuf->Des();
   709                     TPtr datebufPtr = datebuf->Des();
   712 
   710 
   713                     datebufPtr.Num( dateInt );
   711                     datebufPtr.Num( dateInt );
   714                     if ( datebufPtr.Length() < KMPXWmaDrmMinutesHourMinSize )
   712                     if ( datebufPtr.Length() < KMPXWmaDrmMinutesHourMinSize )