IGraphicBufferProducer: fix QUEUE_BUFFER info leak
Bug: 26338109 Change-Id: I8a979469bfe1e317ebdefa43685e19f9302baea8
This commit is contained in:
parent
93312a3a38
commit
daca8c3407
@ -402,6 +402,7 @@ status_t BnGraphicBufferProducer::onTransact(
|
|||||||
QueueBufferOutput* const output =
|
QueueBufferOutput* const output =
|
||||||
reinterpret_cast<QueueBufferOutput *>(
|
reinterpret_cast<QueueBufferOutput *>(
|
||||||
reply->writeInplace(sizeof(QueueBufferOutput)));
|
reply->writeInplace(sizeof(QueueBufferOutput)));
|
||||||
|
memset(output, 0, sizeof(QueueBufferOutput));
|
||||||
status_t result = queueBuffer(buf, input, output);
|
status_t result = queueBuffer(buf, input, output);
|
||||||
reply->writeInt32(result);
|
reply->writeInt32(result);
|
||||||
return NO_ERROR;
|
return NO_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user