Loading libs/binder/tests/parcel_fuzzer/libbinder_driver.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,9 @@ #include <fuzzbinder/random_parcel.h> #include <android-base/logging.h> #include <binder/ProcessState.h> namespace android { void fuzzService(const sp<IBinder>& binder, FuzzedDataProvider&& provider) { Loading Loading @@ -60,6 +63,15 @@ void fuzzService(const sp<IBinder>& binder, FuzzedDataProvider&& provider) { options.extraFds.push_back(base::unique_fd(dup(retFds[i]))); } } // invariants auto ps = ProcessState::selfOrNull(); if (ps) { CHECK_EQ(0, ps->getThreadPoolMaxTotalThreadCount()) << "Binder threadpool should not be started by fuzzer because coverage can only " "cover in-process calls."; } } } // namespace android Loading
libs/binder/tests/parcel_fuzzer/libbinder_driver.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,9 @@ #include <fuzzbinder/random_parcel.h> #include <android-base/logging.h> #include <binder/ProcessState.h> namespace android { void fuzzService(const sp<IBinder>& binder, FuzzedDataProvider&& provider) { Loading Loading @@ -60,6 +63,15 @@ void fuzzService(const sp<IBinder>& binder, FuzzedDataProvider&& provider) { options.extraFds.push_back(base::unique_fd(dup(retFds[i]))); } } // invariants auto ps = ProcessState::selfOrNull(); if (ps) { CHECK_EQ(0, ps->getThreadPoolMaxTotalThreadCount()) << "Binder threadpool should not be started by fuzzer because coverage can only " "cover in-process calls."; } } } // namespace android