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