summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2016-01-11 15:02:12 -0800
committerRobert Shih <robertshih@google.com>2016-01-11 16:33:17 -0800
commitd06421fd37fbb7fd07002e6738fac3a223cb1a62 (patch)
treeed4b7304d408d1e134afecc83ba9a7093935cd83
parent778b6f4902ad824d5fc62071caaa837bb47deee5 (diff)
downloadframeworks_native-d06421fd37fbb7fd07002e6738fac3a223cb1a62.zip
frameworks_native-d06421fd37fbb7fd07002e6738fac3a223cb1a62.tar.gz
frameworks_native-d06421fd37fbb7fd07002e6738fac3a223cb1a62.tar.bz2
IGraphicBufferProducer: fix QUEUE_BUFFER info leak
Bug: 26338109 Change-Id: I8a979469bfe1e317ebdefa43685e19f9302baea8
-rw-r--r--libs/gui/IGraphicBufferProducer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/gui/IGraphicBufferProducer.cpp b/libs/gui/IGraphicBufferProducer.cpp
index b73e69e..e713c04 100644
--- a/libs/gui/IGraphicBufferProducer.cpp
+++ b/libs/gui/IGraphicBufferProducer.cpp
@@ -219,6 +219,7 @@ status_t BnGraphicBufferProducer::onTransact(
QueueBufferOutput* const output =
reinterpret_cast<QueueBufferOutput *>(
reply->writeInplace(sizeof(QueueBufferOutput)));
+ memset(output, 0, sizeof(QueueBufferOutput));
status_t result = queueBuffer(buf, input, output);
reply->writeInt32(result);
return NO_ERROR;