OSDN Git Service

Initialize local variables to avoid data leak
authorNaveen Leekha <leekha@google.com>
Wed, 23 Sep 2015 01:04:44 +0000 (18:04 -0700)
committerNaveen Leekha <leekha@google.com>
Wed, 23 Sep 2015 01:04:44 +0000 (18:04 -0700)
commitb414255f53b560a06e642251535b019327ba0d7b
treef1e5d56cd14773002465200eff1c2de376c0fbc3
parent3a9b9aec7a0c04b74a278be5773fcfdaa2a04f4e
Initialize local variables to avoid data leak

The uninitialized local variables pick up
whatever the memory content was there on stack.
This data gets sent to the remote process in
case of a failed transaction, which is a security
issue. Fixed.

(Partial manual merge of master change
 12ba0f57d028a9c8f4eb3afddc326b70677d1e0c. Rest
 to automerge from klp-dev)

For b/23696300

Change-Id: I704c9fab327b3545c58e8a9a96ac542eb7469c2a
libs/gui/IGraphicBufferProducer.cpp