summaryrefslogtreecommitdiffstats
path: root/libs/gui
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2016-01-11 15:02:12 -0800
committerThe Android Automerger <android-build@google.com>2016-01-22 13:37:17 -0800
commitdaca8c3407dcc43eeded42d49b4357ff507f27de (patch)
tree066c35ebba22a9fd311bcd749f0ff05f16ec7efe /libs/gui
parent93312a3a38bc3573c9b15c6a3c4c11fcdcfaa0da (diff)
downloadframeworks_native-daca8c3407dcc43eeded42d49b4357ff507f27de.zip
frameworks_native-daca8c3407dcc43eeded42d49b4357ff507f27de.tar.gz
frameworks_native-daca8c3407dcc43eeded42d49b4357ff507f27de.tar.bz2
IGraphicBufferProducer: fix QUEUE_BUFFER info leak
Bug: 26338109 Change-Id: I8a979469bfe1e317ebdefa43685e19f9302baea8
Diffstat (limited to 'libs/gui')
-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 8bdbc22..1099c84 100644
--- a/libs/gui/IGraphicBufferProducer.cpp
+++ b/libs/gui/IGraphicBufferProducer.cpp
@@ -402,6 +402,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;