diff --git a/proprietary/cryptoPlugin/WVCryptoPlugin.cpp b/proprietary/cryptoPlugin/WVCryptoPlugin.cpp index b5098114..215c2889 100644 --- a/proprietary/cryptoPlugin/WVCryptoPlugin.cpp +++ b/proprietary/cryptoPlugin/WVCryptoPlugin.cpp @@ -120,6 +120,9 @@ ssize_t WVCryptoPlugin::decrypt( } //ALOGD("size[%d]=%d", i, srcSize); + if (srcSize == 0) { + continue; // segment size is zero, do not call decrypt + } #ifdef REQUIRE_SECURE_BUFFERS // decrypt using OEMCrypto API, used for L1 devices