diff options
author | Robert Shih <robertshih@google.com> | 2016-01-15 01:52:25 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-01-15 01:52:25 +0000 |
commit | 2a7a1247cb4829daaaa4e6a6ee3e670cd2f068bf (patch) | |
tree | 0b95f3d161493e55294f4fe8ecab452364c00d27 | |
parent | 202aaa8f97083b68c0a736f4cd432f61c9b0989d (diff) | |
parent | edb7c81a1b99d2456910b03db9e4ac250eac2fab (diff) | |
download | frameworks_native-2a7a1247cb4829daaaa4e6a6ee3e670cd2f068bf.zip frameworks_native-2a7a1247cb4829daaaa4e6a6ee3e670cd2f068bf.tar.gz frameworks_native-2a7a1247cb4829daaaa4e6a6ee3e670cd2f068bf.tar.bz2 |
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c am: dc9ec35294 am: 9d959e2755
am: edb7c81a1b
* commit 'edb7c81a1b99d2456910b03db9e4ac250eac2fab':
IGraphicBufferProducer: fix QUEUE_BUFFER info leak
-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; |