* commit '73887c0864c9a928db6f66bd48c5aea4d31d9a8b': Initialize local variables to avoid data leak
This commit is contained in:
commit
e889592e33
@ -365,7 +365,7 @@ status_t BnGraphicBufferProducer::onTransact(
|
|||||||
CHECK_INTERFACE(IGraphicBufferProducer, data, reply);
|
CHECK_INTERFACE(IGraphicBufferProducer, data, reply);
|
||||||
sp<GraphicBuffer> buffer = new GraphicBuffer();
|
sp<GraphicBuffer> buffer = new GraphicBuffer();
|
||||||
data.read(*buffer.get());
|
data.read(*buffer.get());
|
||||||
int slot;
|
int slot = 0;
|
||||||
int result = attachBuffer(&slot, buffer);
|
int result = attachBuffer(&slot, buffer);
|
||||||
reply->writeInt32(slot);
|
reply->writeInt32(slot);
|
||||||
reply->writeInt32(result);
|
reply->writeInt32(result);
|
||||||
|
Loading…
Reference in New Issue
Block a user