commit | 78183cc65c3a7bd267c570b371ee5ce3f4b5d63d | [log] [tgz] |
---|---|---|
author | Christopher Tate <ctate@google.com> | Wed Jun 03 18:44:15 2015 -0700 |
committer | Christopher Tate <ctate@google.com> | Mon Jun 08 13:13:19 2015 -0700 |
tree | 5536a112efc28f83ff3b456fb62ad756f8e75f7a | |
parent | a091b548b33ffd5189e6759550f148d7fdd205b3 [diff] |
Don't corrupt parcel when writeFileDescriptor() fails We now check for fd-legality before committing binder objects to the flattened data buffer rather than after. Previously we would wind up corrupting the parcel and incurring driver-level errors, as well as potentially leaking FDs. Bug 21428802 Change-Id: Ice0d641b3dcc41fb1b8c68ce2e2ebd744c2863a1