OSDN Git Service

Correctly handle dup() failure in Parcel::readNativeHandle
authorMarco Nelissen <marcone@google.com>
Tue, 26 Apr 2016 15:44:09 +0000 (08:44 -0700)
committerMarco Nelissen <marcone@google.com>
Tue, 26 Apr 2016 18:42:04 +0000 (18:42 +0000)
commit1de7966c72981aebc3c7f9978ab129678ac89258
tree7804b10b88396694868549a163c92b6b4d9086ac
parent41e7b1780f106d2eb4304b1f9cf060ce44177cae
Correctly handle dup() failure in Parcel::readNativeHandle

bail out if dup() fails, instead of creating an invalid native_handle_t

Bug: 28395952

Change-Id: Ia1a6198c0f45165b9c6a55a803e5f64d8afa0572
libs/binder/Parcel.cpp