summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2016-01-15 01:58:27 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-01-15 01:58:27 +0000
commit6df23e81f762ec7bdf3d575582ad51aaef5172cf (patch)
treef43222f1a96c060272647d76c69e3ab2dc5f1828
parente8cceaf02f7e15e1ef0c3446c4287ce58cc325ba (diff)
parentea2b6c68e14b918972b1390765fdf4f748b49ba2 (diff)
downloadframeworks_native-6df23e81f762ec7bdf3d575582ad51aaef5172cf.zip
frameworks_native-6df23e81f762ec7bdf3d575582ad51aaef5172cf.tar.gz
frameworks_native-6df23e81f762ec7bdf3d575582ad51aaef5172cf.tar.bz2
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c am: dc9ec35294 am: 9d959e2755 am: edb7c81a1b am: 2a7a1247cb am: 40ba03fc68
am: ea2b6c68e1 * commit 'ea2b6c68e14b918972b1390765fdf4f748b49ba2': IGraphicBufferProducer: fix QUEUE_BUFFER info leak
-rw-r--r--libs/gui/IGraphicBufferProducer.cpp1
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;