diff options
author | 2015-06-03 18:44:15 -0700 | |
---|---|---|
committer | 2015-06-08 13:13:19 -0700 | |
commit | 98e67d352b8805a868ca0e7c2be3ea830fb7c338 (patch) | |
tree | 55f0942778666611027851e7d4e302fa86acc211 /libs/binder/BufferedTextOutput.cpp | |
parent | c6f30bdee1f634eb90d68cb76efe935b6535a1e8 (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
Diffstat (limited to 'libs/binder/BufferedTextOutput.cpp')
0 files changed, 0 insertions, 0 deletions