OSDN Git Service

Fix stack content leak vulnerability in mediaserver
authorJeff Tinker <jtinker@google.com>
Fri, 2 Sep 2016 18:36:46 +0000 (11:36 -0700)
committerJeff Tinker <jtinker@google.com>
Fri, 2 Sep 2016 18:40:40 +0000 (18:40 +0000)
bug: 30875060
Change-Id: I03f4d08b7b31ac5b507cfc9e65e5607c73972d95

media/libmedia/IDrm.cpp

index 7c709cd..6f6530b 100644 (file)
@@ -912,7 +912,7 @@ status_t BnDrm::onTransact(
             readVector(data, keyId);
             readVector(data, message);
             readVector(data, signature);
-            bool match;
+            bool match = false;
             uint32_t result = verify(sessionId, keyId, message, signature, match);
             reply->writeInt32(match);
             reply->writeInt32(result);