Skip to content

Commit 371f043

Browse files
rjshandi34
authored andcommitted
IGraphicBufferProducer: fix QUEUE_BUFFER info leak
Bug: 26338109 Change-Id: I8a979469bfe1e317ebdefa43685e19f9302baea8 (cherry picked from commit d06421f)
1 parent 01fe256 commit 371f043

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/gui/IGraphicBufferProducer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ status_t BnGraphicBufferProducer::onTransact(
219219
QueueBufferOutput* const output =
220220
reinterpret_cast<QueueBufferOutput *>(
221221
reply->writeInplace(sizeof(QueueBufferOutput)));
222+
memset(output, 0, sizeof(QueueBufferOutput));
222223
status_t result = queueBuffer(buf, input, output);
223224
reply->writeInt32(result);
224225
return NO_ERROR;

0 commit comments

Comments
 (0)