am c1e6fbb5
: Initialize local variables to avoid data leak
* commit 'c1e6fbb52c3f85cc7610d1d07d12be38f70b4ed4': Initialize local variables to avoid data leak
This commit is contained in:
commit
e2c4f4fb8b
@ -205,7 +205,7 @@ status_t BnGraphicBufferProducer::onTransact(
|
|||||||
uint32_t h = data.readInt32();
|
uint32_t h = data.readInt32();
|
||||||
uint32_t format = data.readInt32();
|
uint32_t format = data.readInt32();
|
||||||
uint32_t usage = data.readInt32();
|
uint32_t usage = data.readInt32();
|
||||||
int buf;
|
int buf = 0;
|
||||||
sp<Fence> fence;
|
sp<Fence> fence;
|
||||||
int result = dequeueBuffer(&buf, &fence, async, w, h, format, usage);
|
int result = dequeueBuffer(&buf, &fence, async, w, h, format, usage);
|
||||||
reply->writeInt32(buf);
|
reply->writeInt32(buf);
|
||||||
@ -237,7 +237,7 @@ status_t BnGraphicBufferProducer::onTransact(
|
|||||||
} break;
|
} break;
|
||||||
case QUERY: {
|
case QUERY: {
|
||||||
CHECK_INTERFACE(IGraphicBufferProducer, data, reply);
|
CHECK_INTERFACE(IGraphicBufferProducer, data, reply);
|
||||||
int value;
|
int value = 0;
|
||||||
int what = data.readInt32();
|
int what = data.readInt32();
|
||||||
int res = query(what, &value);
|
int res = query(what, &value);
|
||||||
reply->writeInt32(value);
|
reply->writeInt32(value);
|
||||||
|
Loading…
Reference in New Issue
Block a user