mpx/commonframework/common/src/mpxdrmmediawmaagent.cpp
branchRCL_3
changeset 24 6c1dfe4da5dd
parent 0 a2952bb97e68
child 25 63223d4fd956
equal deleted inserted replaced
23:e42293e811d8 24:6c1dfe4da5dd
   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]
   708                     HBufC* datebuf = HBufC::NewLC( KMPXWmaDrmMaxTimeBufSize );
   710                     HBufC* datebuf = HBufC::NewLC( KMPXWmaDrmMaxTimeBufSize );
   709                     TPtr datebufPtr = datebuf->Des();
   711                     TPtr datebufPtr = datebuf->Des();
   710 
   712 
   711                     datebufPtr.Num( dateInt );
   713                     datebufPtr.Num( dateInt );
   712                     if ( datebufPtr.Length() < KMPXWmaDrmMinutesHourMinSize )
   714                     if ( datebufPtr.Length() < KMPXWmaDrmMinutesHourMinSize )