OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbc9a47
)
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak
author
Robert Shih
<robertshih@google.com>
Mon, 11 Jan 2016 19:42:48 +0000
(11:42 -0800)
committer
Robert Shih
<robertshih@google.com>
Mon, 11 Jan 2016 19:47:42 +0000
(11:47 -0800)
Bug:
26338113
Change-Id: I019c4df2c6adbc944122df96968ddd11a02ebe33
libs/gui/IGraphicBufferConsumer.cpp
patch
|
blob
|
history
diff --git
a/libs/gui/IGraphicBufferConsumer.cpp
b/libs/gui/IGraphicBufferConsumer.cpp
index
f6d087d
..
dc917a8
100644
(file)
--- a/
libs/gui/IGraphicBufferConsumer.cpp
+++ b/
libs/gui/IGraphicBufferConsumer.cpp
@@
-444,7
+444,7
@@
status_t BnGraphicBufferConsumer::onTransact(
CHECK_INTERFACE(IGraphicBufferConsumer, data, reply);
sp<GraphicBuffer> buffer = new GraphicBuffer();
data.read(*buffer.get());
- int slot;
+ int slot
= -1
;
int result = attachBuffer(&slot, buffer);
reply->writeInt32(slot);
reply->writeInt32(result);