equal
deleted
inserted
replaced
707 |
707 |
708 __LOG3("CSBEDecompressAndEncrypt::CreateCipherL - Got encryption header (encrypted=%d, buffer size=%d, total size=%d)", |
708 __LOG3("CSBEDecompressAndEncrypt::CreateCipherL - Got encryption header (encrypted=%d, buffer size=%d, total size=%d)", |
709 iEncryptionHeader.iEncrypted, iEncryptionHeader.iBufferSize, iEncryptionHeader.iTotalSize); |
709 iEncryptionHeader.iEncrypted, iEncryptionHeader.iBufferSize, iEncryptionHeader.iTotalSize); |
710 |
710 |
711 // Check we have a sensible encryption header |
711 // Check we have a sensible encryption header |
712 if ((iEncryptionHeader.iBufferSize < 0) || |
712 if ((iEncryptionHeader.iBufferSize < 0) || (iEncryptionHeader.iBufferSize >= KMaxTInt/2) || |
713 (iEncryptionHeader.iTotalSize < 0)) |
713 (iEncryptionHeader.iTotalSize < 0)) |
714 { |
714 { |
715 __LOG("CSBEDecompressAndEncrypt::CreateCipherL() - Corrupt data"); |
715 __LOG("CSBEDecompressAndEncrypt::CreateCipherL() - Corrupt data"); |
716 User::Leave(KErrCorrupt); |
716 User::Leave(KErrCorrupt); |
717 } |
717 } |