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
This commit is contained in:
commit
ea2b6c68e1
@ -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