diff options
author | Robert Shih <robertshih@google.com> | 2016-01-15 01:56:25 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-01-15 01:56:25 +0000 |
commit | ea2b6c68e14b918972b1390765fdf4f748b49ba2 (patch) | |
tree | bb892835660c7bb2900aa5447940f850dbbedcbf | |
parent | c5cb7c489bcc3a52abdd4d02fb353b0a7b8557eb (diff) | |
parent | 40ba03fc68e6c234bb8604784716cb2481ad1c67 (diff) | |
download | frameworks_native-ea2b6c68e14b918972b1390765fdf4f748b49ba2.zip frameworks_native-ea2b6c68e14b918972b1390765fdf4f748b49ba2.tar.gz frameworks_native-ea2b6c68e14b918972b1390765fdf4f748b49ba2.tar.bz2 |
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c am: dc9ec35294 am: 9d959e2755 am: edb7c81a1b am: 2a7a1247cb
am: 40ba03fc68
* commit '40ba03fc68e6c234bb8604784716cb2481ad1c67':
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; |