diff options
author | Robert Shih <robertshih@google.com> | 2016-01-11 15:02:12 -0800 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2016-01-22 13:37:17 -0800 |
commit | daca8c3407dcc43eeded42d49b4357ff507f27de (patch) | |
tree | 066c35ebba22a9fd311bcd749f0ff05f16ec7efe /libs/gui | |
parent | 93312a3a38bc3573c9b15c6a3c4c11fcdcfaa0da (diff) | |
download | frameworks_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.cpp | 1 |
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; |