diff options
author | Robert Shih <robertshih@google.com> | 2016-01-15 01:50:22 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-01-15 01:50:22 +0000 |
commit | edb7c81a1b99d2456910b03db9e4ac250eac2fab (patch) | |
tree | 17b739274b1c6d5fbe9b5b7117b9549911aa8cc4 /libs | |
parent | dc252255af835bb3a69bc9a0d01da12419c0fc05 (diff) | |
parent | 9d959e275561bcace3aab1f9df009c6c880003fa (diff) | |
download | frameworks_native-edb7c81a1b99d2456910b03db9e4ac250eac2fab.zip frameworks_native-edb7c81a1b99d2456910b03db9e4ac250eac2fab.tar.gz frameworks_native-edb7c81a1b99d2456910b03db9e4ac250eac2fab.tar.bz2 |
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c am: dc9ec35294
am: 9d959e2755
* commit '9d959e275561bcace3aab1f9df009c6c880003fa':
IGraphicBufferProducer: fix QUEUE_BUFFER info leak
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 74a40ee..ec05f60 100644 --- a/libs/gui/IGraphicBufferProducer.cpp +++ b/libs/gui/IGraphicBufferProducer.cpp @@ -378,6 +378,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; |