diff options
author | Robert Shih <robertshih@google.com> | 2016-01-11 15:02:12 -0800 |
---|---|---|
committer | Robert Shih <robertshih@google.com> | 2016-01-11 16:33:17 -0800 |
commit | d06421fd37fbb7fd07002e6738fac3a223cb1a62 (patch) | |
tree | ed4b7304d408d1e134afecc83ba9a7093935cd83 /libs | |
parent | 778b6f4902ad824d5fc62071caaa837bb47deee5 (diff) | |
download | frameworks_native-d06421fd37fbb7fd07002e6738fac3a223cb1a62.zip frameworks_native-d06421fd37fbb7fd07002e6738fac3a223cb1a62.tar.gz frameworks_native-d06421fd37fbb7fd07002e6738fac3a223cb1a62.tar.bz2 |
IGraphicBufferProducer: fix QUEUE_BUFFER info leak
Bug: 26338109
Change-Id: I8a979469bfe1e317ebdefa43685e19f9302baea8
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gui/IGraphicBufferProducer.cpp | 1 |
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; |