diff options
author | Robert Shih <robertshih@google.com> | 2016-01-15 01:45:18 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-01-15 01:45:18 +0000 |
commit | 9d959e275561bcace3aab1f9df009c6c880003fa (patch) | |
tree | 22516c34bfd1fb0a3948ef248535415f22475dd0 /libs | |
parent | 7ee203b59d9a74d485ce2fdfd07e96b2d10ff23b (diff) | |
parent | dc9ec35294b8ec6b6c349b826edc9b44f4ddb96d (diff) | |
download | frameworks_native-9d959e275561bcace3aab1f9df009c6c880003fa.tar.gz frameworks_native-9d959e275561bcace3aab1f9df009c6c880003fa.tar.bz2 frameworks_native-9d959e275561bcace3aab1f9df009c6c880003fa.zip |
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c
am: dc9ec35294
* commit 'dc9ec35294b8ec6b6c349b826edc9b44f4ddb96d':
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 4f7b0d30e..67690b70d 100644 --- a/libs/gui/IGraphicBufferProducer.cpp +++ b/libs/gui/IGraphicBufferProducer.cpp @@ -357,6 +357,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; |