Loading libs/binder/Parcel.cpp +6 −1 Original line number Original line Diff line number Diff line Loading @@ -25,6 +25,7 @@ #include <binder/ProcessState.h> #include <binder/ProcessState.h> #include <binder/TextOutput.h> #include <binder/TextOutput.h> #include <errno.h> #include <utils/Debug.h> #include <utils/Debug.h> #include <utils/Log.h> #include <utils/Log.h> #include <utils/String8.h> #include <utils/String8.h> Loading Loading @@ -1284,7 +1285,11 @@ status_t Parcel::read(FlattenableHelperInterface& val) const status_t err = NO_ERROR; status_t err = NO_ERROR; for (size_t i=0 ; i<fd_count && err==NO_ERROR ; i++) { for (size_t i=0 ; i<fd_count && err==NO_ERROR ; i++) { fds[i] = dup(this->readFileDescriptor()); fds[i] = dup(this->readFileDescriptor()); if (fds[i] < 0) err = BAD_VALUE; if (fds[i] < 0) { err = BAD_VALUE; ALOGE("dup() failed in Parcel::read, i is %d, fds[i] is %d, fd_count is %d, error: %s", i, fds[i], fd_count, strerror(errno)); } } } if (err == NO_ERROR) { if (err == NO_ERROR) { Loading Loading
libs/binder/Parcel.cpp +6 −1 Original line number Original line Diff line number Diff line Loading @@ -25,6 +25,7 @@ #include <binder/ProcessState.h> #include <binder/ProcessState.h> #include <binder/TextOutput.h> #include <binder/TextOutput.h> #include <errno.h> #include <utils/Debug.h> #include <utils/Debug.h> #include <utils/Log.h> #include <utils/Log.h> #include <utils/String8.h> #include <utils/String8.h> Loading Loading @@ -1284,7 +1285,11 @@ status_t Parcel::read(FlattenableHelperInterface& val) const status_t err = NO_ERROR; status_t err = NO_ERROR; for (size_t i=0 ; i<fd_count && err==NO_ERROR ; i++) { for (size_t i=0 ; i<fd_count && err==NO_ERROR ; i++) { fds[i] = dup(this->readFileDescriptor()); fds[i] = dup(this->readFileDescriptor()); if (fds[i] < 0) err = BAD_VALUE; if (fds[i] < 0) { err = BAD_VALUE; ALOGE("dup() failed in Parcel::read, i is %d, fds[i] is %d, fd_count is %d, error: %s", i, fds[i], fd_count, strerror(errno)); } } } if (err == NO_ERROR) { if (err == NO_ERROR) { Loading