Fix AUPT: Native crash in /system/bin/mediaserver
Protect against invalid memcpy to NULL bug: 15163357 Change-Id: Ifab17714473f45cb714a0ee765638733b3236ec8
This commit is contained in:
@@ -477,6 +477,11 @@ void WVMMediaSource::DecryptCallback(WVEsSelector esType, void* input, void* out
|
|||||||
DecryptContext &context = source->getDecryptContext();
|
DecryptContext &context = source->getDecryptContext();
|
||||||
uint32_t copied = length;
|
uint32_t copied = length;
|
||||||
|
|
||||||
|
if (!context.mMediaBuf->data()) {
|
||||||
|
ALOGE("WVMMediaSource::DecryptCallback - no media buffer!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (clientContext->getCryptoPluginMode()) {
|
if (clientContext->getCryptoPluginMode()) {
|
||||||
// just determine crypto unit boundaries
|
// just determine crypto unit boundaries
|
||||||
if (key) {
|
if (key) {
|
||||||
|
|||||||
Reference in New Issue
Block a user